After 7.5 years working primarily with WWC, I was laid off last week. I'm looking for a full-time gig, but if anybody needs some temporary help please let me know. I'm in San Diego. CA. The company I worked for provided Print and Mail Services and my main responsibility was online Statement Presentment applications. Please email me if you'd like to see my resume.
You can't pack the table in a live, running environment which is the reason that the default is to use cursors since EXCLUSIVE use is required for the external table. You need to use an admin task (shut down all instances but one, then pack). The same is true of the Session and Log tables so you hsould have an admin routine that indexes all of these at once with one admin request.
You don't really need to pack all that frequently I suspect especially if your cache times stay large. VFP will do fine with a fairly large table especially since access is indexed. So unless you have issues with running out of space you probably don't need to worry about it...
As to clearing out entries - you can do it on one of the Cache addition tasks. Cache additions should fire fairly infrequently. Cache entries will natively expire - all expire does is physically delete the expired records which makes the search for valid items more efficient.
+++ Rick ---
What is a good way to fire off Expire() (since I've read the timer is unreliable)?
Also, I've created a method called Clear() in my subclass of wwCache that deletes all of a user's cached records when they logout. I'm working on the ideal method/time to PACK the table. Currently, I have it in Clear(), but I'm concerned VFP might crash if a user's request hits wwCache at the instant the table is being packed. Can anyone offer suggestions?
Also, here is the code for Clear() :
************************************************************************
* wwCache :: Clear******************************************* Function: Deletes current users cached records on logout*** Pass: lcSessionID - User's session ID to identify PK ************************************************************************FUNCTIONClear(lcSessionID)LOCAL lcOldAlias, lcContentlcOldAlias = ALIAS()THIS.Open()this.Expire()IFFILE(this.cFixedFilename) USE USE (this.cFixedFilename) EXCLUSIVEDeleteFrom (this.cFixedFilename) Where KeyLike'%' + lcSessionIDPACK USEENDIFTHIS.Open()IF !EMPTY(lcOldAlias)SELECT (lcOldAlias)ENDIFENDFUNC
Rick Strahl West Wind TechnologiesWhere do you want to surf today?
I just figured out a way to do a "poor man's wildcard app map" in iss5. If you are willing to put up with a redirection, you can set up a virtual that redirects to your apps transmitfile method/page and stuffs in the file name via IIS's redirection vars.
You can set up a "/downloads" virtual that redirects to a URL and put: www.yoursite.com/downloadfile.wcs?filename=$s in the "Redirect to:" text box in the iis configuration for that virtual.
the "/somefile.pdf" from the request will be stuffed into where the "$s" is and a redirection will be sent back to the browser. The user (if they look) will be able to see the messier URL after the doc loads, but at least the cleaner URL will work at the outset.
A second virtual (pointing to the same physical) could be set up to differentiate between "download" and "view" calls.
This way you can respond to any extension without having to set up an explicit mapping to it.
IIS 6 does this better with wildcard mappings, but requires a modification to the wwserver:process() CASE statement in order to direct calls to your designated /downloads folder to your app regardless of the extension.
-lc
Also Related: I think a lot of problems go away if you were to wildcard a special "downloads" folder (IIS 6 required) in your virtual to send all requests to your app. That way you can preserve the extension and make MSIE happy. Not that this excuses the behaviour at all. But, it also allows for a very intuitive URI scheme which I think is particularly important for links to static documents.
This new transmitFile feature in WWWC is very cool actually. Since I've been using it, I see all sorts of potential for smooth, application managed, access and management of files. I've got a real need for some basic file versioning/rollback abilities, and I think I can wire it up with WWWC now pretty easily. Imagine being able to redirect (perhaps with an intersitial warning page) users to the *most recent* version of the file they requested (when they click the link that points to an old version) etc.
Good points. We were handling the "latest version" issue by replacing the underlying file. Since our URL was to the database record by PK, it didn't matter that the file name was changing. But where multiple versions need to be supported, your idea sounds right, especially if IIS 6 is available which eases admin.
And if your situation was that you didn't want the old physical files lying around, you could use the "check that file exists" toggle, as long as all the old version names were in the DB. Lots of options.
You might need to clean your registry as well. IF you go into regedit and find instances of yourapp.yourappServer and delete the entry AFTER you have executed the appname.exe /unregister .
A colleague and I just uncovered a difference between vfp8 and vfp9 that we were not expecting.
Running the code below in vfp8 will give you a sequence of _text values something like: -1, 15, 15, 15 while in vfp9 it will give: -1, 15, -1, -1. (where 15 is the file handle to the textmerge target file). Further tests show that vfp9 does indeed close the textmerge file. So, in short, vfp9 shuts down textmerge to file globally when it encounters an error in try/catch.
clear ? "inital _text: ",_text set textmerge to c:\temp\foo.txt set textmerge on ? "textmerge handle: ",_text try x=y catch ? "after catch: ",_text endtry ? "after try/catch: ",_text set textmerge to
In the helpfile for both vfp9 and vfp8 there is a hint that textmerge and try/catch don't play well together:
Avoid using the SET TEXTMERGE TO MEMVAR command within a TRY...CATCH...FINALLY structure because the memory variable will be lost if an error occurs in the statement.
but it does not explicitly warn against the approach above.
Regardless, this is something to be aware of it you are building components that might utilize try/catch while a textmerge handle is open, which can happen with various script expanding processes like codeblock.
Use Options on the TPM. Pick the first tab (general?), and choose not to load TPM when VFP starts.
Can't answer your other question, other than to say I don't use it.
-- Randy
Is there a way to permanently disable the "Task Pane Manager"? It always pops up on VFP 9.0 startup and I can't seem to find a place to turn off the "load on startup" attribute. I have tried removing the path in the "options/File locations" tab but this automatically "repairs" itself on startup. -jc
P.S. Is anyone actually using the Task Pane Manager?
Randy, Thanks. This worked. I missed this option the first time around. -jc
Use Options on the TPM. Pick the first tab (general?), and choose not to load TPM when VFP starts.
Can't answer your other question, other than to say I don't use it.
-- Randy
Is there a way to permanently disable the "Task Pane Manager"? It always pops up on VFP 9.0 startup and I can't seem to find a place to turn off the "load on startup" attribute. I have tried removing the path in the "options/File locations" tab but this automatically "repairs" itself on startup. -jc
P.S. Is anyone actually using the Task Pane Manager?
Randy Pearson Cycla Corp.
Author: "WebRAD: Building Database Websites with Visual FoxPro and Web Connection"
No kidding <s>. The only reason I'd like them is just to please validators. Them seem to demand them.
I'm going to wait on the 1.5 move for now, and try to get this 1.3 into production. You're moving too fast for me <g>. Thanks for the input.
DOCTYPE settings can drastically change the way documents render. These doctypes are used by the browsers to set default style profiles and style inheritance rules for the various browsers.
The store is not real consistent with DocTypes at the moment, which is something I'm hoping to fix in the 2.0 version for ASP.NET 2.0. Actually 1.5 is a lot cleaner in terms of the HTML usage than previous versions, but it's still not quite conformant. Backfixing HTML is not trivial <g>...
What is a good way to fire off Expire() (since I've read the timer is unreliable)?
Also, I've created a method called Clear() in my subclass of wwCache that deletes all of a user's cached records when they logout. I'm working on the ideal method/time to PACK the table. Currently, I have it in Clear(), but I'm concerned VFP might crash if a user's request hits wwCache at the instant the table is being packed. Can anyone offer suggestions?
Also, here is the code for Clear() :
************************************************************************
* wwCache :: Clear
****************************************
*** Function: Deletes current users cached records on logout
*** Pass: lcSessionID - User's session ID to identify PK
************************************************************************FUNCTIONClear(lcSessionID)
LOCAL lcOldAlias, lcContent
lcOldAlias = ALIAS()
THIS.Open()
this.Expire()
IFFILE(this.cFixedFilename)
USE
USE (this.cFixedFilename) EXCLUSIVEDeleteFrom (this.cFixedFilename) Where KeyLike'%' + lcSessionID
PACK
USE
ENDIFTHIS.Open()
IF !EMPTY(lcOldAlias)
SELECT (lcOldAlias)
ENDIFENDFUNC
Is there a way to permanently disable the "Task Pane Manager"? It always pops up on VFP 9.0 startup and I can't seem to find a place to turn off the "load on startup" attribute. I have tried removing the path in the "options/File locations" tab but this automatically "repairs" itself on startup. -jc
P.S. Is anyone actually using the Task Pane Manager?
Maybe the connection got dropped in the middle of the transfer?
Actually, looking closer you can't use FtpGetFile - you need to use FtpGetFileEx() as FtpGetFile retrieves a single file and disconnects. FTPGetFileEx() is meant to allow retrieving content on an open connection.
+++ Rick ---
Error: "Unable to Connect to FTP Server
The File Names are listed on the screen of the server. How could the aFTPDir function work without being able to connect to the FTPServer.
Code: o=create("wwFTP") o.lpassiveFTP = .t. o.ftpconnect("IPAddress", "UserName", "PassWord") DIMENSION laFiles[1,4] lnResult = o.aFTPDir(@laFiles,"/*.*") ACTIVATE screen FOR x=1 to lnResult ? laFiles[x,1] &&& ,laFiles[x,2],laFiles[x,3], laFiles[x,4] ENDFOR FOR x=1 to lnResult IF "JPG" $ UPPER(laFiles[x,1]) ? laFiles[x,1] &&& ,laFiles[x,2],laFiles[x,3], laFiles[x,4] IF o.FTPGetFile(laFiles[x,1],"c:\ftpnisl\"+laFiles[x,1]) <> 0 lcError = o.cErrorMsg THIS.ErrorMsg("Get Photos Error",lcError + laFiles[x,1] +PAGEFOOT ) o.ftpclose() RETURN ENDIF ENDIF ENDFOR
Rick Strahl West Wind TechnologiesWhere do you want to surf today?
I also get the duplicates... I have this same problem with my own RSS-feeds i build using WWWC to script all records in my foxpro table to xml/rss...
Maybe it has something to do with the PubDate being misread by the RSSReader...
I thought about that too, but I also use the same generation code for FoxCentral, West Wind News and a few other internal things and it works fine there. Looking at the timestamps they seem the same on the duplicate entries.
In my own test reader I've written I look for the link and date time as the key so there I don't get duplication...
Odd...
+++ Rick ---
Hey Rick,
For me both FeedDemon and NewsGator duplicate - everytime they retrieve messages they come in again and I get dupes. Not sure why or what's different - all the other feeds from this site are doing fine and they're basically getting pulled at the same pace.
I'm also using FeedDemon (v1.5) and I get duplicated entries as well. How should the posts show up in the RSS reader? A new entry each time a thread is added to, or new posts to a thread tacked on the end of the original entry?
The Message Board just creates the feed of all messages over a given stretch of time. So the feed changes frequently and somehow FeedDemo (and Newsgator) double read the feeds and don't resolve them as the same items.
Not sure how this is different from the way the BLOG works, because it does the same sort of thing as soon as a new entry is added to the blog. It happens there too, but much less frequently. <shrug>
Gonna have to keep an eye on this.
I notice now that recent messages aren't duplicating - only older messages which is odd.
+++ Rick ---
Rick Strahl West Wind TechnologiesWhere do you want to surf today?
DOCTYPE settings can drastically change the way documents render. These doctypes are used by the browsers to set default style profiles and style inheritance rules for the various browsers.
The store is not real consistent with DocTypes at the moment, which is something I'm hoping to fix in the 2.0 version for ASP.NET 2.0. Actually 1.5 is a lot cleaner in terms of the HTML usage than previous versions, but it's still not quite conformant. Backfixing HTML is not trivial <g>...
+++ Rick ---
Thanks, Doug. I couldn't catch why that would happen in the source code, nor viewing the source in the browsers, IE and Mozilla. Both rendered identically - meaning badly <s>. I did notice one big difference:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
in default.aspx. Removing the above 'fixes' the problem. Huh?
Jim,
On one page you have the menu render first, then the form (short left layout), on the other you render the form, then the menu (which fills the page correctly).
I see you have a typo in there too - imagescccheight="40".
HTH, Doug
Rick Strahl West Wind TechnologiesWhere do you want to surf today?
Has anyone played with any of the wireless print servers? We're making some changes here, and may end up not wanting two of our printers either in the same room with a computer, or even associated with a specific computer (they may all be laptops and subject to not being available). Extra points if any of them can handle more than one printer at a time.
I've heard experience with these devices can be varied. We're using dLink now for our WAPs and WLAN routers and have been pretty happy, so all things equal I may try theirs.
TIA,
-- Randy
I wasn't very happy with it when I got a two-port linksys printer hub a few years ago - perhaps things have improved... but I HAVE been very satisfied with networked printers. Just plug them into the network, install the driver and go.
I have found that the hubs needed software to drive them, and that software could easily get out of date when MS issued a new OS.
Sounds good. I was more uncertain about the network part than the wireless part. I'm so accustomed to printers attaching to computers. Just like that ad...
dLink has a 3-port (2 USB 2.0, 1 parallel) 802.11G device (model DP-G321) that sells for < $100. I may try it out. We're thinking of locating the printers where there is no wired ethernet, so that's why we want wireless in addition to network printing.
-- Randy
Randy Pearson Cycla Corp.
Author: "WebRAD: Building Database Websites with Visual FoxPro and Web Connection"
Ok. When I disabled my Firewall.. problem gone.. Don't understand why.. but it works now..
Denis.
Hi, I have problem with WebService call. The webservice call using SSL, port 443, and when when wwHTTP class try post data to server it return error message
"A certificate is required to complete client authentication"
Is there way to avoid this message?
In .NET exist CertificatePolicy class and CheckValidationResult to fix it.. which way in WWC framework?
Thanks for that info Randy. I'll have to check that out! I've not tried FireFox for reading syndicated feeds yet...
Marty
Just as a FYI Rick's BLOG and the new message RSS feed work as "Live Bookmarks" in Firefox.
RandyC
Hey Rick,
For me both FeedDemon and NewsGator duplicate - everytime they retrieve messages they come in again and I get dupes. Not sure why or what's different - all the other feeds from this site are doing fine and they're basically getting pulled at the same pace.
I'm also using FeedDemon (v1.5) and I get duplicated entries as well. How should the posts show up in the RSS reader? A new entry each time a thread is added to, or new posts to a thread tacked on the end of the original entry?
and I checked, wwRequestLog still has the TIME field.
Have you checked that This.cLogFile is valid -- have you run this from the command window (changing the parameters, of course) to determine if this is somethig to do with the logfile itself or with the environment in which the line of code is running?
HTH
Reg
wwRequestLog is still a good dbf, I put it through the Debugger and This.cLogFile = wwRequestLog, The error comes up even though according to the DataView , the wwRequestLog is not opened (so how does it 'know' TIME is not valid) . The cgiLog file is opened and functioning.
Can you insert into a file that is not opened? Have you tried opening the file first? Perhaps the error is misleading
Hi, I have problem with WebService call. The webservice call using SSL, port 443, and when when wwHTTP class try post data to server it return error message
"A certificate is required to complete client authentication"
Is there way to avoid this message?
In .NET exist CertificatePolicy class and CheckValidationResult to fix it.. which way in WWC framework?
Just as a FYI Rick's BLOG and the new message RSS feed work as "Live Bookmarks" in Firefox.
RandyC
Hey Rick,
For me both FeedDemon and NewsGator duplicate - everytime they retrieve messages they come in again and I get dupes. Not sure why or what's different - all the other feeds from this site are doing fine and they're basically getting pulled at the same pace.
I'm also using FeedDemon (v1.5) and I get duplicated entries as well. How should the posts show up in the RSS reader? A new entry each time a thread is added to, or new posts to a thread tacked on the end of the original entry?
and I checked, wwRequestLog still has the TIME field.
Have you checked that This.cLogFile is valid -- have you run this from the command window (changing the parameters, of course) to determine if this is somethig to do with the logfile itself or with the environment in which the line of code is running?
HTH
Reg
wwRequestLog is still a good dbf, I put it through the Debugger and This.cLogFile = wwRequestLog, The error comes up even though according to the DataView , the wwRequestLog is not opened (so how does it 'know' TIME is not valid) . The cgiLog file is opened and functioning.
Well, that would be a real bummer, and I sincerely hope that each client does not need a locally attached printer when running Terminal Services. For my purposes, that would render Terminal Services practically useless, at least in an Application Hosting Model. Here is a small exert taken from a MS Doc concerning TS Printing. Notice the statement in quotes. However, most info does mention printers attached to LPT1, a COM port, or USB port. Perhaps the reference to a network printer is a mistake.
Providing Client Access to Local Printers Terminal Services provides printer redirection, which routes printing jobs from a terminal server to a printer attached to a client computer "or to a network printer" that is available to the client computer.
You can disable printer redirection by using Terminal Services Group Policies or on a per-connection basis by using the Terminal Services Configuration feature. There are two ways to provide client access to local printers: • Automatic printer redirection. This works through Remote Desktop Connection. • Manual printer redirection. Use this option for 16-bit clients, Windows-based terminals, and local printers that require older drivers. Please note that in Terminal Services: • Bidirectional printing is not supported. • Redirected printers are available for use with applications running on the server. Redirected printers appear in the Printers folder in Control Panel. • Clients see only their own redirected printers in the Printers dialog box.
Thanks for your help. Steve
Terminal Services can not find network printers on your local computer. Set one up on LPT1, the drivers must be on the server for this printer. It should work.
I have been doing with VFP 7.0 for the last several months.
Jim
Hi All,
Currently testing my VFP8 App under 2003 Terminal Services. So far, everything is working great, except for printing. I can print-preview fine. The jobs make it to the Print Queue. Locally defined printers (which are actually network printers) and available in the TS Session just like advertised. However, when I try to print, I receive a very generic message: "The document failed to print". Then it lists the job name, and a few other bits of info. The job in the print queue simply says "Error - Printing".
I have tried this with a regular userid and the admin userid, same result. Looks like the printer port is TSnnn, where nnn is a number for the terminal services session, for example TS005. I have found a few articles on the MS KDB, but nothing that discusses the exact problem I am experiencing. I have also verified this happens from multiple client workstations. It's like the 2003 server is getting confused when it tries to send the print job back to the TS Client Workstation for final routing to the printer. Anyone ever seen this?
Thanks, Doug. I couldn't catch why that would happen in the source code, nor viewing the source in the browsers, IE and Mozilla. Both rendered identically - meaning badly <s>. I did notice one big difference:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
in default.aspx. Removing the above 'fixes' the problem. Huh?
Jim,
On one page you have the menu render first, then the form (short left layout), on the other you render the form, then the menu (which fills the page correctly).
I see you have a typo in there too - imagescccheight="40".
On one page you have the menu render first, then the form (short left layout), on the other you render the form, then the menu (which fills the page correctly).
I see you have a typo in there too - imagescccheight="40".
HTH, Doug
I've got a testbed of Rick's .NET Webstore here and am getting some strange behavior. If anyone has the time to look, just jump between the My Shopping Cart and Store Home links in the Shopping menu. Why is the background changing size on me? TIA.
Don't spend your life just wishing - http://www.AllGiftRegistry.com
I know this is a bit of old technology and a security risk but I'm trying to get Remote Data Services to work over HTTP fo Visual Foxpro Data. I am using the following code;
I also get the duplicates... I have this same problem with my own RSS-feeds i build using WWWC to script all records in my foxpro table to xml/rss...
Maybe it has something to do with the PubDate being misread by the RSSReader...
Hey Rick,
For me both FeedDemon and NewsGator duplicate - everytime they retrieve messages they come in again and I get dupes. Not sure why or what's different - all the other feeds from this site are doing fine and they're basically getting pulled at the same pace.
I'm also using FeedDemon (v1.5) and I get duplicated entries as well. How should the posts show up in the RSS reader? A new entry each time a thread is added to, or new posts to a thread tacked on the end of the original entry?
The Message Board just creates the feed of all messages over a given stretch of time. So the feed changes frequently and somehow FeedDemo (and Newsgator) double read the feeds and don't resolve them as the same items.
Not sure how this is different from the way the BLOG works, because it does the same sort of thing as soon as a new entry is added to the blog. It happens there too, but much less frequently. <shrug>
Gonna have to keep an eye on this.
I notice now that recent messages aren't duplicating - only older messages which is odd.
Terminal Services can not find network printers on your local computer. Set one up on LPT1, the drivers must be on the server for this printer. It should work.
I have been doing with VFP 7.0 for the last several months.
Jim
Hi All,
Currently testing my VFP8 App under 2003 Terminal Services. So far, everything is working great, except for printing. I can print-preview fine. The jobs make it to the Print Queue. Locally defined printers (which are actually network printers) and available in the TS Session just like advertised. However, when I try to print, I receive a very generic message: "The document failed to print". Then it lists the job name, and a few other bits of info. The job in the print queue simply says "Error - Printing".
I have tried this with a regular userid and the admin userid, same result. Looks like the printer port is TSnnn, where nnn is a number for the terminal services session, for example TS005. I have found a few articles on the MS KDB, but nothing that discusses the exact problem I am experiencing. I have also verified this happens from multiple client workstations. It's like the 2003 server is getting confused when it tries to send the print job back to the TS Client Workstation for final routing to the printer. Anyone ever seen this?
Has anyone else had trouble installing service packs on their MSDE or SQL Server 2000? I started getting an error today that, when I Googled it, said that I needed to install SP4. The download was incredibly slow (like dialup speed) so I tried installing SP3A off of my MSDN disks.
It seemed to run okay but when I checked from the Query Analyzer afterwards with SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')
it told me that I was still running 8.00.194 which is the RTM version of MSDE. I tried installing SQL Server 2000 dev edition from my MSDN disks and tried SP4 (once it finally downloaded many hours later) but to no avail. They all acted like they were running okay but with no change.
Actually, with SP4 it acted like it was starting up but then just went away.
and I checked, wwRequestLog still has the TIME field.
Have you checked that This.cLogFile is valid -- have you run this from the command window (changing the parameters, of course) to determine if this is somethig to do with the logfile itself or with the environment in which the line of code is running?
I can only say "I didn't know about this." I've been using what comes with Windows or Cute ftp, both fairly unsophisticated stuff. I'll have a look at FTP Voyager (found the link in Google)
Thanks
Reg
Rick's 'Install the exe' feature has some clear benefits for maintaining a site remotely -- I've added an 'Install the Async Processor' to the admin.asp and that works too -- both of which save me from having to ftp files and get some sort of local access to move them into the required folder.
Now I want to do something similar for other kinds of files, e.g., when I upload a new executable that needs a new image, I need to send the new image, too. I can use the already present 'upload a file to the uploads folder' function to get the file to the server but the graphics need to be in the images folder and at the moment I either have to send instructions to someone local, or get remote desktop access.
I have a list of folders in the app's ini file (scripts, images, app root, etc.) so I am thinking I could restrict this function to moving a selected file from the updates folder to any previously defined folder, and doing this in my app, not in the admin.asp page (because that doesn't know about the contents of the ini file)
Before I charge off on this new quest, has anyone done this, know of reasons why it shouldn't be done, have some advice about what to watch for?
Thanks
Reg
I don't know what FTP tool you use, but pro level FTP clients like FTP Voyager let you do tons of stuff - define jobs with multiple tasks, run outside programs as a part of a scheduled task, sync multiple directories, etc... Why not sync the specified directories, hit the 'update code online' link for the site from a scheduled task?
For me both FeedDemon and NewsGator duplicate - everytime they retrieve messages they come in again and I get dupes. Not sure why or what's different - all the other feeds from this site are doing fine and they're basically getting pulled at the same pace.
I'm also using FeedDemon (v1.5) and I get duplicated entries as well. How should the posts show up in the RSS reader? A new entry each time a thread is added to, or new posts to a thread tacked on the end of the original entry?
The Message Board just creates the feed of all messages over a given stretch of time. So the feed changes frequently and somehow FeedDemo (and Newsgator) double read the feeds and don't resolve them as the same items.
Not sure how this is different from the way the BLOG works, because it does the same sort of thing as soon as a new entry is added to the blog. It happens there too, but much less frequently. <shrug>
Gonna have to keep an eye on this.
I notice now that recent messages aren't duplicating - only older messages which is odd.
+++ Rick ---
Rick Strahl West Wind TechnologiesWhere do you want to surf today?
Rick's 'Install the exe' feature has some clear benefits for maintaining a site remotely -- I've added an 'Install the Async Processor' to the admin.asp and that works too -- both of which save me from having to ftp files and get some sort of local access to move them into the required folder.
Now I want to do something similar for other kinds of files, e.g., when I upload a new executable that needs a new image, I need to send the new image, too. I can use the already present 'upload a file to the uploads folder' function to get the file to the server but the graphics need to be in the images folder and at the moment I either have to send instructions to someone local, or get remote desktop access.
I have a list of folders in the app's ini file (scripts, images, app root, etc.) so I am thinking I could restrict this function to moving a selected file from the updates folder to any previously defined folder, and doing this in my app, not in the admin.asp page (because that doesn't know about the contents of the ini file)
Before I charge off on this new quest, has anyone done this, know of reasons why it shouldn't be done, have some advice about what to watch for?
Thanks
Reg
I don't know what FTP tool you use, but pro level FTP clients like FTP Voyager let you do tons of stuff - define jobs with multiple tasks, run outside programs as a part of a scheduled task, sync multiple directories, etc... Why not sync the specified directories, hit the 'update code online' link for the site from a scheduled task?
Has anyone played with any of the wireless print servers? We're making some changes here, and may end up not wanting two of our printers either in the same room with a computer, or even associated with a specific computer (they may all be laptops and subject to not being available). Extra points if any of them can handle more than one printer at a time.
I've heard experience with these devices can be varied. We're using dLink now for our WAPs and WLAN routers and have been pretty happy, so all things equal I may try theirs.
TIA,
-- Randy
I wasn't very happy with it when I got a two-port linksys printer hub a few years ago - perhaps things have improved... but I HAVE been very satisfied with networked printers. Just plug them into the network, install the driver and go.
I have found that the hubs needed software to drive them, and that software could easily get out of date when MS issued a new OS.
Rick's 'Install the exe' feature has some clear benefits for maintaining a site remotely -- I've added an 'Install the Async Processor' to the admin.asp and that works too -- both of which save me from having to ftp files and get some sort of local access to move them into the required folder.
Now I want to do something similar for other kinds of files, e.g., when I upload a new executable that needs a new image, I need to send the new image, too. I can use the already present 'upload a file to the uploads folder' function to get the file to the server but the graphics need to be in the images folder and at the moment I either have to send instructions to someone local, or get remote desktop access.
I have a list of folders in the app's ini file (scripts, images, app root, etc.) so I am thinking I could restrict this function to moving a selected file from the updates folder to any previously defined folder, and doing this in my app, not in the admin.asp page (because that doesn't know about the contents of the ini file)
Before I charge off on this new quest, has anyone done this, know of reasons why it shouldn't be done, have some advice about what to watch for?
OK, I just looked at Rick's and he's using the same API call as mine, but his gets the answer right. I just need to add the daylight saving adjustment code. It's all accomplished with just one DECLARE and fn call.
Thanks for pointing me that way.
- Randy
Sometimes the easiest solution is the best!<g>
GetTimeZoneType returns a value that lets you decide whether or not to account for Daylight Savings Time before yielding up the actual GMT value. Southern hemisphere folks have to account for two hours instead of one! Bummer!
I am going to look at Rick's API function closer after reading Randy's post though. Hadn't used it yet but the docs say it returns the DST offset too...
Marty
I have a UDF that calculates the time zone offset from GMT by usig the GetTimeZoneInformation API. This is currently returning 300 (5 hours), even though GMT is 4 hours from us right now. I notice that IIS on this same machine is inserting the correct GMT time in the HTTP header it returns.
Are you using the function GetTimeZoneType to determine whether or not you are set to Daylight Savings Time first? You are officially GMT -5 as a time zone but your time zone respects Daylight Savings Time which is a local setting on your machine. Perhaps that is the hour difference you are experiencing?
What does IIS know/use that is getting the right answer when this API doesn't?
Hi Marty,
That might be it. I noticed that IIS is inserting the Date: header even if you provide one yourself. Thus my HTTP headers were getting two date settings, and not agreeing with each other! For now, I'm just going to remove mine.
-- Randy
Randy Pearson Cycla Corp.
Author: "WebRAD: Building Database Websites with Visual FoxPro and Web Connection"
GetTimeZoneType returns a value that lets you decide whether or not to account for Daylight Savings Time before yielding up the actual GMT value. Southern hemisphere folks have to account for two hours instead of one! Bummer!
I am going to look at Rick's API function closer after reading Randy's post though. Hadn't used it yet but the docs say it returns the DST offset too...
Marty
I have a UDF that calculates the time zone offset from GMT by usig the GetTimeZoneInformation API. This is currently returning 300 (5 hours), even though GMT is 4 hours from us right now. I notice that IIS on this same machine is inserting the correct GMT time in the HTTP header it returns.
Are you using the function GetTimeZoneType to determine whether or not you are set to Daylight Savings Time first? You are officially GMT -5 as a time zone but your time zone respects Daylight Savings Time which is a local setting on your machine. Perhaps that is the hour difference you are experiencing?
What does IIS know/use that is getting the right answer when this API doesn't?
Hi Marty,
That might be it. I noticed that IIS is inserting the Date: header even if you provide one yourself. Thus my HTTP headers were getting two date settings, and not agreeing with each other! For now, I'm just going to remove mine.
For me both FeedDemon and NewsGator duplicate - everytime they retrieve messages they come in again and I get dupes. Not sure why or what's different - all the other feeds from this site are doing fine and they're basically getting pulled at the same pace.
I'm also using FeedDemon (v1.5) and I get duplicated entries as well. How should the posts show up in the RSS reader? A new entry each time a thread is added to, or new posts to a thread tacked on the end of the original entry?
Has anyone played with any of the wireless print servers? We're making some changes here, and may end up not wanting two of our printers either in the same room with a computer, or even associated with a specific computer (they may all be laptops and subject to not being available). Extra points if any of them can handle more than one printer at a time.
I've heard experience with these devices can be varied. We're using dLink now for our WAPs and WLAN routers and have been pretty happy, so all things equal I may try theirs.
TIA,
-- Randy
Randy Pearson Cycla Corp.
Author: "WebRAD: Building Database Websites with Visual FoxPro and Web Connection"
Thanks, I did a search and didn't find this solution -- I need to do better searching!
Kevin
Check out the thread starting with msg:1KC0VRHRQ RandyC
Hello,
My users have a CHM file that was built in html help 2.5 (build 2.55). Everything works fine, but a few users have new machines with XP 2003 and now the help topics come up with the web-type error: "Page Cannot Be Displayed." The contents pane shows correctly, but none of the individual help topics work.
Obviously, this is due to 2003 and I am think I should just rebuild the help file and sent him a new one. But I would like to know if anyone else has seen this?
For me both FeedDemon and NewsGator duplicate - everytime they retrieve messages they come in again and I get dupes. Not sure why or what's different - all the other feeds from this site are doing fine and they're basically getting pulled at the same pace.
+++ Rick ---
Rick Strahl West Wind TechnologiesWhere do you want to surf today?
My users have a CHM file that was built in html help 2.5 (build 2.55). Everything works fine, but a few users have new machines with XP 2003 and now the help topics come up with the web-type error: "Page Cannot Be Displayed." The contents pane shows correctly, but none of the individual help topics work.
Obviously, this is due to 2003 and I am think I should just rebuild the help file and sent him a new one. But I would like to know if anyone else has seen this?
I use the Wizz RSS reader with Firefox. I don't see any duplications. I clicked its refresh several times and still no dups.
RandyC
Can you check something for me?
It looks like the feed is duplicating every time the RSS feed is hit. I'm not sure why that is happening - only happens on this feed actually.
I end up with a lot of duplicate entries for each post, which is odd.
Anybody else seeing that?
+++ Rick ---
Hi Rick,
Great option! Looks good in my RSS-Reader(v. 1.0.88).
Thanx.
Hi all,
The message board is now available via RSS feed which allows you to dynamically pull the content from messages here into your favorite RSS reader. The feed pulls the messages from the current day and the previous day with a 5 minute cache delay.
and links have been added to the message board list as well as various feed link sections of the West Wind site.
Take a look and see how you like it. The feed currently feeds the whole message. I played around with just feeding the message text, but I think it actually helps to get the whole message including the headers.
Thanks, Rick. This should not be a file name issue. They are downloading a file with new name. For instance, they're running something like PROGRAM003.EXE and they are downloading PROGRAM004.EXE.
If your're right about it being differing versions of WinInet, then I'll be sure to ask them what version of IE they have on their machine and chart what the response is from people experiencing the corruption.
Russell
The main reason for corruption might be an already existing file. I would try and make sure that you delete any files that might already exist in place.
I haven't seen this behavior either although I've heard about this before from others here. I suspect it may have to do with differing versions of WinInet (which installs with IE).
+++ Rick ---
I have a situation where using wwFTP to download a file is sometimes resulting in a corrupted file. The file is a 1.7 MB EXE and is simply a new version of the program they are running. In testing, this worked fine for me. And my client can download the file with no problem, but some of his clients - the true end-users of the program - are having a problem. After downloading and attempting to run the program, VFP reports that it is not an object file. Unfortunately, I have no information on how many customers download the file with no problem and how many have a problem. All I know is that I can do it and my client can do it. Therefore, I assume that some of his customers are also successfully downloading it, but I just don't know the split (successful vs. unsuccessful).
I use FTPGetFile (I tried FTPGetFileEx at the outset, but had lots of problems with that - if I remember correctly, it was corrupting the file all the time).
My users have a CHM file that was built in html help 2.5 (build 2.55). Everything works fine, but a few users have new machines with XP 2003 and now the help topics come up with the web-type error: "Page Cannot Be Displayed." The contents pane shows correctly, but none of the individual help topics work.
Obviously, this is due to 2003 and I am think I should just rebuild the help file and sent him a new one. But I would like to know if anyone else has seen this?
It looks like the feed is duplicating every time the RSS feed is hit. I'm not sure why that is happening - only happens on this feed actually.
I end up with a lot of duplicate entries for each post, which is odd.
Anybody else seeing that?
+++ Rick ---
Hi Rick,
Great option! Looks good in my RSS-Reader(v. 1.0.88).
Thanx.
Hi all,
The message board is now available via RSS feed which allows you to dynamically pull the content from messages here into your favorite RSS reader. The feed pulls the messages from the current day and the previous day with a 5 minute cache delay.
and links have been added to the message board list as well as various feed link sections of the West Wind site.
Take a look and see how you like it. The feed currently feeds the whole message. I played around with just feeding the message text, but I think it actually helps to get the whole message including the headers.
+++ Rick ---
Rick Strahl West Wind TechnologiesWhere do you want to surf today?
The main reason for corruption might be an already existing file. I would try and make sure that you delete any files that might already exist in place.
I haven't seen this behavior either although I've heard about this before from others here. I suspect it may have to do with differing versions of WinInet (which installs with IE).
+++ Rick ---
I have a situation where using wwFTP to download a file is sometimes resulting in a corrupted file. The file is a 1.7 MB EXE and is simply a new version of the program they are running. In testing, this worked fine for me. And my client can download the file with no problem, but some of his clients - the true end-users of the program - are having a problem. After downloading and attempting to run the program, VFP reports that it is not an object file. Unfortunately, I have no information on how many customers download the file with no problem and how many have a problem. All I know is that I can do it and my client can do it. Therefore, I assume that some of his customers are also successfully downloading it, but I just don't know the split (successful vs. unsuccessful).
I use FTPGetFile (I tried FTPGetFileEx at the outset, but had lots of problems with that - if I remember correctly, it was corrupting the file all the time).
Any ideas would be appreciated.
Thanks,
Russell Campbell
Rick Strahl West Wind TechnologiesWhere do you want to surf today?