How to decode LastStart & LastEnd ?

Pablo
09/13/2007 06:34 pm
Hello Oleg,
I?m writing a small program that makes a daily report on the result of the scheduled downloads, and generates alerts on certain situations. I will be processing the file WebDown.dat, taking several parameters of each project.

One of the parameters I need, and cannot understand how to "decode" is the Last Start time of the project?s execution, and the Last End time.

In WebDown.dat the info is as follows:
LastStart=182:182:220:137:183:47:227:64:
LastEnd=24:75:126:217:183:47:227:64:

And in the REPORT page, these "translate" to:
Time: 30/07/2007 05:39:14
Elapsed Time: 0 days 00:13:59

What kind of coding are you using to store the LastStart and LastEnd times so I can "translate" them to a date/time I can process??

Thank you very much,
Pablo.

Oleg Chernavin
09/14/2007 06:33 am
You will need to concatenate the bytes divided with : into a double-precision float variable. The integer part of it is number of dates. The part after the decimal point is hours/minutes of that day.

Best regards,
Oleg Chernavin
MP Staff
Pablo
09/14/2007 11:52 am
Sorry to bother again, but I was not able to translate LastStart/LastEnd to a date/time format...

Say, for example LastStart=182:182:220:137:183:47:227:64:

First I concatenated the bytes to:
LastStart=B6B6DC89B72FE340

And now... how can I convert this to date/time? I'm using Xbase (a variant of the old Clipper DBF language), so I must "decode" it manually using arithmethic or string operations...

Sorry if this goes beyond the scope of the normal support of OEP !!
Thank you very much,
Pablo.
Oleg Chernavin
09/15/2007 01:56 pm
Well, I don't know how to convert. We develop Offline Explorer using Delphi and there is a TDateTime type.

Oleg.
Pablo
09/17/2007 07:27 am
That's a useful information. I have a friend good on Delphi, so he can help me in the conversion of double precision variables.
Thank you very much, Oleg.
Oleg Chernavin
09/17/2007 08:17 am
Great! You are welcome!

Oleg.
Pablo
09/27/2007 12:01 pm
Oleg,

I have been dealing with this topic about converting time/dates from double-precision to "something viewable", but give up. Couldn't decode it after hours trying...

Would it be too complicated for a future release to add three new lines in WebDown.dat, like as follows:

These two already exist:
LastStart=133:208:6:110:147:211:226:64:
LastEnd=200:196:113:201:149:211:226:64:

These three are new, with the same info, but "viewable"
LastExecDate=09/19/2007
LastExecTime=14:25:33
LastExecElapsed=01:30:33

Best regards,
Pablo.
Oleg Chernavin
09/27/2007 12:06 pm
Well, it was done for internal use only. I didn't think about any other usage. Why do you need to access this info?

Oleg.
Oleg Chernavin
09/29/2007 09:35 am
OK. I will add a normal representation there. It will display the date in the format that is setup by your system.

I uploaded the updated oe.exe file here:

http://www.metaproducts.com/download/betas/OEP2654.ZIP

Oleg.
Pablo
10/01/2007 09:09 am
That's fantastic !
Thank you very much !
Oleg Chernavin
10/03/2007 05:40 am
You are welcome!

Oleg.
Pablo
10/12/2007 10:42 am
Dear Oleg,

I few days I have installed the new OEP2654.ZIP you generated for me. The new date/time fields work great, and I'm using them succesfully.

I'm now having a weird problem that might have nothing to do with OEP, but I would like to ask it anyway:

I have a few dozens of projects scheduled to download at night. Approximately since I have installed the new OEP build, OEP stops downloading at midnight (00:00 Hours), and at the next morning, I find all the projects in the "STOPPED" state.
I'm trying to find where is the problem. I'm checking the network connection, which I think is the most probable reason... but anyway dropped this to you just for the case it has something to do with OEP...

Thank you very much,
Pablo.
Oleg Chernavin
10/12/2007 10:58 am
It doesn't have code to do the stop. However, can you restore the previous oe.exe file just to test if it is the new version or not?

Oleg.
Oleg Chernavin
10/16/2007 12:17 pm
I am trying to reproduce this, but it works well. Can you please upgrade to the latest 4.8 SR1 version?

If it also fails, can you please uncheck the Suppress Server Errors box in the Project Properties dialog - Advanced section?

Please let me know how it goes. Thank you!

Oleg.
Pablo
10/17/2007 12:21 pm
Oleg,

I repeated the test, but using build 4.9.2654 (the last you compiled for me with LastStarted=).
Tryed also unchecking the flag as you suggested.

The result is allways the same:
- The project starts downloading as usual
- At a certain point (perhaps the end of the download), the project stops downloading files
- Left corner with the "Parsing (xxx)" is fixed (xxx is a certain number of files)
- No files look to be downloading: all are in light gray
- OE icon in the tray-icon zone is rotating, like if it is working, but it is not
- OE interfase responds normally: I can close, exit, etc.

Regards,
Pablo.
Oleg Chernavin
10/18/2007 02:55 am
OK I see now. Let's do it this way. Please turn on log (Ctrl+W), uncheck Details and Download Progress in the Filters menu of the Log window, all others make checked. Let the download run until it hangs, save the log to a file and send it to me (ZIPped, please).

Oleg.
Pablo
10/23/2007 09:51 am
This is crazy: I followed your instructions to generate the log file, but now the project does not hang (ends normally)! Perhaps the origin of the problem was now modified in that website...
If it repeats, I will send you the log.
Thank you,
Pablo.


> OK I see now. Let's do it this way. Please turn on log (Ctrl+W), uncheck Details and Download Progress in the Filters menu of the Log window, all others make checked. Let the download run until it hangs, save the log to a file and send it to me (ZIPped, please).
>
> Oleg.
Oleg Chernavin
10/23/2007 11:26 am
Yes, it is possible. It is sad, because I would prefer to find and fix the error. :)

Oleg.
Pablo
10/31/2007 08:00 am
Well, today the problem happened again: OE Stopped downloading the site www.eltiempo.com, and all subsequent scheduled downloads were also stopped.

I'm sending to support @ metaproducts.com a ZIPped file with the LOG, and also a screen picture of OE when hanged.

Regards,
Pablo.
Oleg Chernavin
10/31/2007 09:41 am
OK. Good. If you don't hear from me within two days, please post here again - sometimes antispam filters kill every E-mail, even good ones. I will write you myself then.

Oleg.
Pablo
11/07/2007 07:38 am
Oleg,

I didn't hear from you... did you receive my e-mail with the log information ??

Regards,
Pablo.
Oleg Chernavin
11/07/2007 09:07 am
No. I sent you an E-mail myself. If you get it, please reply with the logs.

Oleg.
Pablo
11/07/2007 10:03 am
OK, I resent the info to your email.
Regards,
Pablo.
Oleg Chernavin
11/08/2007 07:37 am
Yes, I got it. Thank you!

Oleg.