I have not done programming in a very long time and what is worst, I never learned VB. Although my job does not require this knowledge, I cam across a problem that although it seemed simple it has become a nightmare.
There is a log that gets generated in a regular basis and need to put most , but not all its contents in a DB (new or existent, it doesn't matter). because the fields that I need to cover are vertically and there is junk in the file, I the wizards nor the Macros in Access or Excel 2003 seem to be much help. The log file looks like this (log111.txt)
---------------------------------------------------------------------------------------------------------------
:¿G 6 [SIG2] sigmaInit() initialized RUA by calling avis_init()
6 [CLST] Can't open semaphore: No such file or directory
7 [OPRA] Registered TVCSYS/AVIS callback
6 [MP M]
6 [MP M] *************** ******* File Playback Statistics *************** ***********
6 [MP M] Total number files played and exited = 1 files
6 [MP M] Total number files that required rebuffering = 0 files
6 [MP M] Total rebuffering percentage = 0.000000%
6 [MP M]
6 [MP M] Last file decoded - Title = 5-year-old boy left alone dies in fire
6 [MP M] Last file decoded - Filename = http://cosmos.bcst.yah oo.com/getPlaylist.php ?
node_id=6566264 &bitrate=1500&t ech=wmv
6 [MP M] Last file decoded - File bitrate = 1475 kbps
6 [MP M] Last file decoded - Instantaneous download speed = 4047 kbps
6 [MP M] Last file decoded - Average download speed = 3509 kbps
6 [MP M]
6 [MP M] Last file decoded - Number of times file rebuffered = 0 times
6 [MP M] Last file decoded - Playback time at last rebuffering event = 0 sec.
6 [MP M] Last file decoded - Download speed at last rebuffering event = 0 kbps
6 [MP M] *************** *************** *************** *************** **************
6 [MP M]
6 [ ] TODO_VEC plGetFile url:
http://digitalhome.yah oo.com/domkernel/2.0/cache/callisto/CosmosAssetInfo ?
ustr=2240994&as set_id=2-2//sonybravia/apnews/0222dv_mn_bus_c rash&link_speed =3000
6 [MP M]
6 [MP M] *************** ******* File Playback Statistics *************** ***********
6 [MP M] Total number files played and exited = 2 files
6 [MP M] Total number files that required rebuffering = 0 files
----------------------------------------------------------------------------------------------------------------
I can clean it up to look like this
Title = 5-year-old boy left alone dies in fire
Filename = http://cosmos.bcst.yah oo.com/getPlaylist.php ?node_id=656626 4&bitrate=1500& tech=wmv
File bitrate = 1475 kbps
Instantaneous download speed = 4047 kbps
Average download speed = 3509 kbps
Number of times file rebuffered = 0 times
Playback time at last rebuffering event = 0 sec.
Download speed at last rebuffering event = 0 kbps
Title = Woman charged in fatal Minn. bus crash
Filename = http://cosmos.bcst.yah oo.com/getPlaylist.php ?node_id=656549 3&bitrate=1500& tech=wmv
File bitrate = 1461 kbps
Instantaneous download speed = 4502 kbps
Average download speed = 4003 kbps
Number of times file rebuffered = 0 times
Playback time at last rebuffering event = 0 sec.
Download speed at last rebuffering event = 0 kbps
Title = Snow and ice covering much of northeast
Filename = http://cosmos.bcst.yah oo.com/getPlaylist.php ?node_id=656420 3&bitrate=1500& tech=wmv
File bitrate = 1482 kbps
Instantaneous download speed = 4018 kbps
Average download speed = 3665 kbps
Number of times file rebuffered = 0 times
Playback time at last rebuffering event = 0 sec.
Download speed at last rebuffering event = 0 kbps
--------------------------------------------------------------------------------------------------------------
and the DB fields need to be (each unique record contains):
Title
Filename
File bitrate
Instantaneous download speed
Average download speed
Number of times file rebuffered
Playback time at last rebuffering event
Download speed at last rebuffering event
This may be a simple code,but I am sorry to say I have not been able to find teh solution and I appreciate anyone's help.
Regards
There is a log that gets generated in a regular basis and need to put most , but not all its contents in a DB (new or existent, it doesn't matter). because the fields that I need to cover are vertically and there is junk in the file, I the wizards nor the Macros in Access or Excel 2003 seem to be much help. The log file looks like this (log111.txt)
---------------------------------------------------------------------------------------------------------------
:¿G 6 [SIG2] sigmaInit() initialized RUA by calling avis_init()
6 [CLST] Can't open semaphore: No such file or directory
7 [OPRA] Registered TVCSYS/AVIS callback
6 [MP M]
6 [MP M] *************** ******* File Playback Statistics *************** ***********
6 [MP M] Total number files played and exited = 1 files
6 [MP M] Total number files that required rebuffering = 0 files
6 [MP M] Total rebuffering percentage = 0.000000%
6 [MP M]
6 [MP M] Last file decoded - Title = 5-year-old boy left alone dies in fire
6 [MP M] Last file decoded - Filename = http://cosmos.bcst.yah oo.com/getPlaylist.php ?
node_id=6566264 &bitrate=1500&t ech=wmv
6 [MP M] Last file decoded - File bitrate = 1475 kbps
6 [MP M] Last file decoded - Instantaneous download speed = 4047 kbps
6 [MP M] Last file decoded - Average download speed = 3509 kbps
6 [MP M]
6 [MP M] Last file decoded - Number of times file rebuffered = 0 times
6 [MP M] Last file decoded - Playback time at last rebuffering event = 0 sec.
6 [MP M] Last file decoded - Download speed at last rebuffering event = 0 kbps
6 [MP M] *************** *************** *************** *************** **************
6 [MP M]
6 [ ] TODO_VEC plGetFile url:
http://digitalhome.yah oo.com/domkernel/2.0/cache/callisto/CosmosAssetInfo ?
ustr=2240994&as set_id=2-2//sonybravia/apnews/0222dv_mn_bus_c rash&link_speed =3000
6 [MP M]
6 [MP M] *************** ******* File Playback Statistics *************** ***********
6 [MP M] Total number files played and exited = 2 files
6 [MP M] Total number files that required rebuffering = 0 files
----------------------------------------------------------------------------------------------------------------
I can clean it up to look like this
Title = 5-year-old boy left alone dies in fire
Filename = http://cosmos.bcst.yah oo.com/getPlaylist.php ?node_id=656626 4&bitrate=1500& tech=wmv
File bitrate = 1475 kbps
Instantaneous download speed = 4047 kbps
Average download speed = 3509 kbps
Number of times file rebuffered = 0 times
Playback time at last rebuffering event = 0 sec.
Download speed at last rebuffering event = 0 kbps
Title = Woman charged in fatal Minn. bus crash
Filename = http://cosmos.bcst.yah oo.com/getPlaylist.php ?node_id=656549 3&bitrate=1500& tech=wmv
File bitrate = 1461 kbps
Instantaneous download speed = 4502 kbps
Average download speed = 4003 kbps
Number of times file rebuffered = 0 times
Playback time at last rebuffering event = 0 sec.
Download speed at last rebuffering event = 0 kbps
Title = Snow and ice covering much of northeast
Filename = http://cosmos.bcst.yah oo.com/getPlaylist.php ?node_id=656420 3&bitrate=1500& tech=wmv
File bitrate = 1482 kbps
Instantaneous download speed = 4018 kbps
Average download speed = 3665 kbps
Number of times file rebuffered = 0 times
Playback time at last rebuffering event = 0 sec.
Download speed at last rebuffering event = 0 kbps
--------------------------------------------------------------------------------------------------------------
and the DB fields need to be (each unique record contains):
Title
Filename
File bitrate
Instantaneous download speed
Average download speed
Number of times file rebuffered
Playback time at last rebuffering event
Download speed at last rebuffering event
This may be a simple code,but I am sorry to say I have not been able to find teh solution and I appreciate anyone's help.
Regards
Comment