I have a pretty simple C++ program that creates a secondary index, then
reads the primary back using a cursor on that secondary index. Both
database files are BTREEs; the secondary allows duplicates (DUP |
DUPSORT)
We're using the C API, not C++. No transactions, logging, or locking.
Single threaded program. Exceptions disabled. The index is created
specifically to do this read.
For some data, we get a perfectly good status back from c_pget -- but
we don't get the correct pkey and data for that record. The problem
seems to start on the first record after a run of duplicate secondary
keys.
I've been breaking my pick on figuring out what the problem is for a
few days. Another of my colleagues is trying to read the btree access
code to figure out what's going on, but we could use some help on the
problem.
I've attached a shar file of the test program and one test dataset (43
records) that causes the problem; I've been compiling this on 32-bit
Redhat Linux, using Sleepycat 4.4.20.NC. To use the test dataset,
db_load it into a file called "events.db".
The test program writes a lot of ugly stuff on stdout. The indexing
(association) errors go to stderr, as does the key error message
"Mismatched...". It exits with 0 if the file is OK.
Thanks!
Hoping this works....
#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 2006-08-04 14:12 PDT by <rcobb@buildrhe30>.
# Source directory was
`/export/home/rcobb/bugfix/LiveServer-3.1.11/Product/liveserver/tools/shar'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 42737 -rw-r--r-- bad_only_12.txt
# 509 -rw-r--r-- GNUmakefile
# 8860 -r--r--r-- readevents.cpp
#
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
if test "$gettext_dir" = FAILED && test -f $dir/gettext \
&& ($dir/gettext --version >/dev/null 2>&1)
then
set `$dir/gettext --version 2>&1`
if test "$3" = GNU
then
gettext_dir=$dir
fi
fi
if test "$locale_dir" = FAILED && test -f $dir/shar \
&& ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
then
locale_dir=`$dir/shar --print-text-domain-dir`
fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
echo=echo
else
TEXTDOMAINDIR=$locale_dir
export TEXTDOMAINDIR
TEXTDOMAIN=sharutils
export TEXTDOMAIN
echo="$gettext_dir/gettext -s"
fi
if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f
200112312359.59 -a -f $$.touch; then
shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f
123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then
shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f
1231235901 -a -f $$.touch; then
shar_touch='touch -am $3$4$5$6$2 "$8"'
else
shar_touch=:
echo
$echo 'WARNING: not restoring timestamps. Consider getting and'
$echo "installing GNU \`touch', distributed in GNU File Utilities..."
echo
fi
rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901
$$.touch
#
if mkdir _sh24862; then
$echo 'x -' 'creating lock directory'
else
$echo 'failed to create lock directory'
exit 1
fi
# ============= bad_only_12.txt ==============
if test -f 'bad_only_12.txt' && test "$first_param" != -c; then
$echo 'x -' SKIPPING 'bad_only_12.txt' '(file already exists)'
else
$echo 'x -' extracting 'bad_only_12.txt' '(text)'
sed 's/^X//' << 'SHAR_EOF' > 'bad_only_12.txt' &&
VERSION=3
format=print
type=btree
db_pagesize=8192
HEADER=END
X 1464:Rainbow Media Google News
Search|http://www.multichannel.com/article/...=Breaking+News
X
1153985918\0a17\0a1153760160.0000007\0a+1728000\0a 0\0a0\0a0\0a654\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.multichannel.com/article/CA6355676.html%3Fdisplay%3DBreaking%2BNews&cid=0&e i=qsrFRNOdC5P2oALp54mSAg">Fuse,
truth Team Up to Get Warped</a><br><font size=-1><font
color=#6f6f6f>Multichannel News (subscription), NY -</font>
<nobr>14 hours ago</nobr></font><br><font size=-1><b>...</b> the first
time Fuse worked with an outside brand or campaign to create a fully
integrated, branded entertainment program, the <b>Rainbow</b>
<b>Media</b> Holdings-owned <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle68\0aFuse, truth Team Up to Get Warped
- Multichannel News
(subscription)9\0aimageLink23\0ahttp://news.google.com/4\0alink166\0ahttp://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.multichannel.com/article/CA6355676.html%3Fdisplay%3DBreaking%2BNews&cid=0&e i=qsrFRNOdC5P2oALp54mSAg4\0adate31\0aMon,
24 Jul 2006 09:56:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid72\0ahttp ://www.multichannel.com/article/CA6355676.html?display=Breaking+News3\0aurl117\0ah ttp://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-24
09:56
X 1464:Rainbow Media Google News
Search|http://www.tuscaloosanews.com/apps/p...YT01/607240346
X
1153983578\0a17\0a1153769160.0000007\0a+1728000\0a 0\0a0\0a0\0a674\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://www.tuscaloosanews.com/apps/pbcs.dll/article%3FAID%3D/20060724/ZNYT01/607240346&cid=0&ei=hcHFRNneO6TepgLHnv2TAg">Macy's
Is Set to Become a Reality TV Star</a><br><font size=-1><font
color=#6f6f6f>Tuscaloosa News (subscription), AL -</font>
<nobr>11 hours ago</nobr></font><br><font size=-1><b>...</b> For WE,
operated by <b>Rainbow</b> <b>Media</b>, a subsidiary of Cablevision,
Unwrapping Macys caps a year of fast-growing ratings under the
leadership of Kim Martin, the <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle78\0aMacy's Is Set to Become a
Reality TV Star - Tuscaloosa News
(subscription)9\0aimageLink23\0ahttp://news.google.com/4\0alink174\0ahttp://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://www.tuscaloosanews.com/apps/pbcs.dll/article%3FAID%3D/20060724/ZNYT01/607240346&cid=0&ei=hcHFRNneO6TepgLHnv2TAg4\0adate3 1\0aMon,
24 Jul 2006 12:26:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid82\0ahttp ://www.tuscaloosanews.com/apps/pbcs.dll/article?AID=/20060724/ZNYT01/6072403463\0aurl117\0ahttp://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-24
12:26
X 1464:Rainbow Media Google News
Search|http://www.wilmingtonstar.com/apps/p.../1002/Business
X
1153983879\0a17\0a1153809540.0000007\0a+1728000\0a 0\0a0\0a0\0a683\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://www.wilmingtonstar.com/apps/pbcs.dll/article%3FAID%3D/20060724/ZNYT01/607240404/1002/Business&cid=0&ei=ssLFRJmTFZWQpwK-7Y2UAg">Macy's
Is Set to Become a Reality TV Star</a><br><font size=-1><font
color=#6f6f6f>Wilmington Morning Star, NC -</font> <nobr>26
minutes ago</nobr></font><br><font size=-1><b>...</b> For WE, operated
by <b>Rainbow</b> <b>Media</b>, a subsidiary of Cablevision, Unwrapping
Macys caps a year of fast-growing ratings under the leadership of Kim
Martin, the <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle71\0aMacy's Is Set to Become a
Reality TV Star - Wilmington Morning
Star9\0aimageLink23\0ahttp://news.google.com/4\0alink188\0ahttp://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://www.wilmingtonstar.com/apps/pbcs.dll/article%3FAID%3D/20060724/ZNYT01/607240404/1002/Business&cid=0&ei=ssLFRJmTFZWQpwK-7Y2UAg4\0adate31\0aMon,
24 Jul 2006 23:39:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid96\0ahttp ://www.wilmingtonstar.com/apps/pbcs.dll/article?AID=/20060724/ZNYT01/607240404/1002/Business3\0aurl117\0ahttp://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-24
23:39
X 1464:Rainbow Media Google News
Search|tag:news.google.com,2005:cluster=420c8bca
X
1153877975\0a17\0a1153676820.0000007\0a+1728000\0a 0\0a0\0a0\0a689\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.newsone.ca/westfallweeklynews/stories/index.php%3Faction%3Dfullnews%26id%3D204894&cid=11 08118474&ei=_iTERLrxLIe6pwKSlbyUAg">\e2\80\98Pirat es\e2\80\98
salts away $321.7M over 17 days</a><br><font size=-1><font
color=#6f6f6f>The Westfall Weekly News, Canada -</font>
<nobr>7 hours ago</nobr></font><br><font size=-1><b>...</b> and
Picturehouse are units of Time Warner Inc.; Lionsgate is owned by
Lionsgate Entertainment Corp.; IFC Films is owned by <b>Rainbow</b>
<b>Media</b> Holdings, a subsidiary <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle72\0a\e2\80\98Pirates\e2\80\98 salts
away $321.7M over 17 days - The Westfall Weekly
News9\0aimageLink23\0ahttp://news.google.com/4\0alink189\0ahttp://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.newsone.ca/westfallweeklynews/stories/index.php%3Faction%3Dfullnews%26id%3D204894&cid=11 08118474&ei=_iTERLrxLIe6pwKSlbyUAg4\0adate31\0aSun ,
23 Jul 2006 10:47:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid41\0atag: news.google.com,2005:cluster=420c8bca3\0aurl117\0a http://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-23
10:47
X 1464:Rainbow Media Google News
Search|tag:news.google.com,2005:cluster=420dc101
X
1153875144\0a17\0a1153676820.0000007\0a+1728000\0a 0\0a0\0a0\0a689\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.newsone.ca/westfallweeklynews/stories/index.php%3Faction%3Dfullnews%26id%3D204894&cid=11 08197633&ei=7xnEROvgBIXOpwLz7qGVAg">\e2\80\98Pirat es\e2\80\98
salts away $321.7M over 17 days</a><br><font size=-1><font
color=#6f6f6f>The Westfall Weekly News, Canada -</font>
<nobr>7 hours ago</nobr></font><br><font size=-1><b>...</b> and
Picturehouse are units of Time Warner Inc.; Lionsgate is owned by
Lionsgate Entertainment Corp.; IFC Films is owned by <b>Rainbow</b>
<b>Media</b> Holdings, a subsidiary <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle72\0a\e2\80\98Pirates\e2\80\98 salts
away $321.7M over 17 days - The Westfall Weekly
News9\0aimageLink23\0ahttp://news.google.com/4\0alink189\0ahttp://news.google.com/news/url?sa=T&ct=us/0-0&fd=R&url=http://www.newsone.ca/westfallweeklynews/stories/index.php%3Faction%3Dfullnews%26id%3D204894&cid=11 08197633&ei=7xnEROvgBIXOpwLz7qGVAg4\0adate31\0aSun ,
23 Jul 2006 10:47:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid41\0atag: news.google.com,2005:cluster=420dc1013\0aurl117\0a http://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-23
10:47
X 1464:Rainbow Media Google News
Search|tag:news.google.com,2005:cluster=420dce2e
X
1153957173\0a17\0a1153706460.0000007\0a+1728000\0a 0\0a0\0a0\0a670\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/4-0&fd=R&url=http://www.localnewsleader.com/olberlin/stories/index.php%3Faction%3Dfullnews%26id%3D204954&cid=11 08201006&ei=YFrFRMHvCYS6pwLdvIHTBA">\e2\80\98Pirat es\e2\80\98
out-earns predecessor in 17 days</a><br><font size=-1><font
color=#6f6f6f>Olberlin, KS -</font> <nobr>21 hours
ago</nobr></font><br><font size=-1><b>...</b> and Picturehouse are
units of Time Warner Inc.; Lionsgate is owned by Lionsgate
Entertainment Corp.; IFC Films is owned by <b>Rainbow</b> <b>Media</b>
Holdings, a subsidiary <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle57\0a\e2\80\98Pirates\e2\80\98
out-earns predecessor in 17 days -
Olberlin9\0aimageLink23\0ahttp://news.google.com/4\0alink188\0ahttp://news.google.com/news/url?sa=T&ct=us/4-0&fd=R&url=http://www.localnewsleader.com/olberlin/stories/index.php%3Faction%3Dfullnews%26id%3D204954&cid=11 08201006&ei=YFrFRMHvCYS6pwLdvIHTBA4\0adate31\0aSun ,
23 Jul 2006 19:01:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid41\0atag: news.google.com,2005:cluster=420dce2e3\0aurl117\0a http://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-23
19:01
X 1464:Rainbow Media Google News
Search|tag:news.google.com,2005:cluster=420e00cf
X
1153985918\0a17\0a1153748040.0000007\0a+1728000\0a 0\0a0\0a0\0a710\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/2-0&fd=R&url=http://home.businesswire.com/portal/site/google/index.jsp%3FndmViewId%3Dnews_view%26newsId%3D20060 724005526%26newsLang%3Den&cid=1108213967&ei=qsrFRN OdC5P2oALp54mSAg">C-COR's
Second Annual Global IP Summit</a><br><font size=-1><font
color=#6f6f6f>Business Wire (press release), CA -</font>
<nobr>18 hours ago</nobr></font><br><font size=-1>Josh Sapan, President
and CEO, <b>Rainbow</b> <b>Media</b> Holdings LLC, and Dave Woodle,
CEO, C-COR, answer audience questions at C-COR's Global IP Summit,
June 28-29, in <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle74\0aC-COR's Second Annual Global
IP Summit - Business Wire (press
release)9\0aimageLink23\0ahttp://news.google.com/4\0alink220\0ahttp://news.google.com/news/url?sa=T&ct=us/2-0&fd=R&url=http://home.businesswire.com/portal/site/google/index.jsp%3FndmViewId%3Dnews_view%26newsId%3D20060 724005526%26newsLang%3Den&cid=1108213967&ei=qsrFRN OdC5P2oALp54mSAg4\0adate31\0aMon,
24 Jul 2006 06:34:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid41\0atag: news.google.com,2005:cluster=420e00cf3\0aurl117\0a http://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-24
06:34
X 1464:Rainbow Media Google News
Search|tag:news.google.com,2005:cluster=420e1d22
X
1153985918\0a17\0a1153783860.0000007\0a+1728000\0a 0\0a0\0a0\0a628\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/4-0&fd=R&url=http://www.forbes.com/business/feeds/ap/2006/07/24/ap2900823.html&cid=1108221218&ei=qsrFRNOdC5P2oALp5 4mSAg">'Pirates'
Still Tops at Box Office</a><br><font size=-1><font
color=#6f6f6f>Forbes -</font> <nobr>8 hours
ago</nobr></font><br><font size=-1><b>...</b> and Picturehouse are
units of Time Warner Inc.; Lionsgate is owned by Lionsgate
Entertainment Corp.; IFC Films is owned by <b>Rainbow</b> <b>Media</b>
Holdings, a subsidiary <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle51\0a'Pirates' Still Tops at
Box Office -
Forbes9\0aimageLink23\0ahttp://news.google.com/4\0alink162\0ahttp://news.google.com/news/url?sa=T&ct=us/4-0&fd=R&url=http://www.forbes.com/business/feeds/ap/2006/07/24/ap2900823.html&cid=1108221218&ei=qsrFRNOdC5P2oALp5 4mSAg4\0adate31\0aMon,
24 Jul 2006 16:31:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid41\0atag: news.google.com,2005:cluster=420e1d223\0aurl117\0a http://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-24
16:31
X 1464:Rainbow Media Google News
Search|tag:news.google.com,2005:cluster=420e2f1e
X
1153985918\0a17\0a1153761600.0000007\0a+1728000\0a 0\0a0\0a0\0a725\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://home.businesswire.com/portal/site/google/index.jsp%3FndmViewId%3Dnews_view%26newsId%3D20060 724005785%26newsLang%3Den&cid=1108225822&ei=qsrFRN OdC5P2oALp54mSAg">fuse
Joins Forces with Fangoria Entertainment to Co-Produce First
<b>...</b></a><br><font size=-1><font color=#6f6f6f>Business Wire
(press release), CA -</font> <nobr>14 hours
ago</nobr></font><br><font size=-1><b>...</b> VHS. A leader in the
entertainment industry, <b>Rainbow</b> <b>Media</b> Holdings LLC is a
subsidiary of Cablevision Systems Corporation. Rainbow <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle101\0afuse Joins Forces with Fangoria
Entertainment to Co-Produce First ... - Business Wire (press
release)9\0aimageLink23\0ahttp://news.google.com/4\0alink220\0ahttp://news.google.com/news/url?sa=T&ct=us/1-0&fd=R&url=http://home.businesswire.com/portal/site/google/index.jsp%3FndmViewId%3Dnews_view%26newsId%3D20060 724005785%26newsLang%3Den&cid=1108225822&ei=qsrFRN OdC5P2oALp54mSAg4\0adate31\0aMon,
24 Jul 2006 10:20:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid41\0atag: news.google.com,2005:cluster=420e2f1e3\0aurl117\0a http://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-24
10:20
X 1464:Rainbow Media Google News
Search|tag:news.google.com,2005:cluster=420e3c4b
X
1153985918\0a17\0a1153769160.0000007\0a+1728000\0a 0\0a0\0a0\0a683\0a<br><table
border=0 width= valign=top cellpadding=2 cellspacing=7><tr><td
valign=top><a
href="http://news.google.com/news/url?sa=T&ct=us/3-0&fd=R&url=http://www.tuscaloosanews.com/apps/pbcs.dll/article%3FAID%3D/20060724/ZNYT01/607240346&cid=1108229195&ei=qsrFRNOdC5P2oALp54mSAg ">Macy's
Is Set to Become a Reality TV Star</a><br><font size=-1><font
color=#6f6f6f>Tuscaloosa News (subscription), AL -</font>
<nobr>12 hours ago</nobr></font><br><font size=-1><b>...</b> For WE,
operated by <b>Rainbow</b> <b>Media</b>, a subsidiary of Cablevision,
Unwrapping Macys caps a year of fast-growing ratings under the
leadership of Kim Martin, the <b>...</b>
</font><br></table>12\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL53\0ahttp://news.google.com/intl/en_us/images/news_res.gif8\0afeedName32\0aRainbow
Media Google News Search5\0atitle78\0aMacy's Is Set to Become a
Reality TV Star - Tuscaloosa News
(subscription)9\0aimageLink23\0ahttp://news.google.com/4\0alink183\0ahttp://news.google.com/news/url?sa=T&ct=us/3-0&fd=R&url=http://www.tuscaloosanews.com/apps/pbcs.dll/article%3FAID%3D/20060724/ZNYT01/607240346&cid=1108229195&ei=qsrFRNOdC5P2oALp54mSAg 4\0adate31\0aMon,
24 Jul 2006 12:26:00 -07009\0afeedTitle29\0a"Rainbow Media" - Google
News15\0alink|isPostBack5\0afalse4\0aguid41\0atag: news.google.com,2005:cluster=420e3c4b3\0aurl117\0a http://news.google.com/news?svnum=10&as_scoring=r&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Rainbow+Media%22&output= rss9\0atimestamp16\0a2006-07-24
12:26
X
1478:http:%2F%2Fnews.google.com%2Fnews?svnum=10&as _scoring=r&hl=en&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Tom+Rutledge%22+OR+%22Th omas+Rutledge%22&output=rss
X
2147483647\0a17\0a1153697099.3218758\0ainfinity116 \0ahttp://kndaemon:Bran10916469don (AT) 209 (DOT) 172.120.217:80/kn/kness/plugins/channel_sources/FeedWatcher/kn_routes/119237947210\0a119237947262\0ahttp://cv.knx.com/kn/kness/plugins/channel_sources/FeedWatcher0\0a0\0a21\0a8\0afeedName31\0aTom
Rutledge Google News
Search5\0atopic177\0a/kness/channels/http:%2F%2Fnews.google.com%2Fnews?svnum=10&as_scor ing=r&hl=en&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Tom+Rutledge%22+OR+%22Th omas+Rutledge%22&output=rss/knitems11\0adisplayname7\0aknadmin10\0aitem_topic1 75\0a/kness/channels/http:%2F%2Fnews.google.com%2Fnews?svnum=10&as_scor ing=r&hl=en&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Tom+Rutledge%22+OR+%22Th omas+Rutledge%22&output=rss/items6\0auserid7\0aknadmin18\0afw_refresh_minutes1 \0a513\0akn_event_hash16\0aa5ac25e7742bcff013\0ach annel_topic177\0a/kness/channels/http:%2F%2Fnews.google.com%2Fnews?svnum=10&as_scor ing=r&hl=en&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Tom+Rutledge%22+OR+%22Th omas+Rutledge%22&output=rss/channel9\0acopyright0\0a20\0akness_channel_plugin4 2\0a/kness/plugins/channel_sources/FeedWatcher9\0akness_url147\0ahttp://news.google.com/news?svnum=10&as_scoring=r&hl=en&ned=us&ie=UTF-8&as_drrb=q&as_qdr=d&q=%22Tom+Rutledge%22+OR+%22Th omas+Rutledge%22&output=rss18\0akness_created_with 11\0aFeedWatcher3\0aTTL2\0a4821\0aExpirationOption sType3\0ahrs4\0alink0\0a11\0aauthor_name0\0a9\0afe edTitle31\0aTom
Rutledge Google News
Search18\0afetchFrequencyType3\0amin11\0adescripti on31\0aTom Rutledge
Google News Search7\0avisible4\0atrue5\0aemail0\0a
X
1496:http:%2F%2Fwww.feedfire.com%2Fsite%2Frss.cgi? ChanContentId=016012
X
2147483647\0a17\0a1153693887.3039748\0ainfinity0\0 a0\0a0\0a0\0a0\0a22\0a9\0akness_url57\0ahttp://www.feedfire.com/site/rss.cgi?ChanContentId=01601220\0akness_channel_plu gin42\0a/kness/plugins/channel_sources/FeedWatcher8\0afeedName32\0aMultiChannel
Cable Industry News9\0afeedTitle32\0aMultiChannel Cable Industry
News13\0achannel_topic89\0a/kness/channels/http:%2F%2Fwww.feedfire.com%2Fsite%2Frss.cgi?ChanC ontentId=016012/channel10\0aitem_topic87\0a/kness/channels/http:%2F%2Fwww.feedfire.com%2Fsite%2Frss.cgi?ChanC ontentId=016012/items5\0atopic89\0a/kness/channels/http:%2F%2Fwww.feedfire.com%2Fsite%2Frss.cgi?ChanC ontentId=016012/knitems11\0adescription32\0aMultiChannel
Cable Industry
News4\0alink0\0a5\0aemail0\0a9\0acopyright0\0a18\0 afetchFrequencyType3\0amin18\0afw_refresh_minutes1 \0a521\0aExpirationOptionsType3\0ahrs3\0aTTL2\0a48 18\0akness_created_with11\0aFeedWatcher11\0aauthor _name0\0a7\0avisible4\0atrue6\0auserid7\0aknadmin1 1\0adisplayname7\0aknadmin3\0aurl57\0ahttp://www.feedfire.com/site/rss.cgi?ChanContentId=01601211\0achannelName32\0aM ultiChannel
Cable Industry News
X 1500:MultiChannel Cable Industry News|A Variety Group publication
X
1153927499\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle27\0aA Variety Group
publication9\0aimageLink0\0a4\0alink22\0ahttp://www.variety.com4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|AT&T Conn. Franchise Fight
Heads to Court
X
1153951500\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle45\0aAT&T Conn. Franchise Fight Heads
to
Court9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355023.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Author: Too Many Choices
Paralyze Consumers
X
1153896899\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle43\0aAuthor: Too Many Choices Paralyze
Consumers9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6354767.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Barton, Deal to Hold Retrans
Roundtable
X
1153948079\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle39\0aBarton, Deal to Hold Retrans
Roundtable9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6354450.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Blocklin: Cable Shouldn’t
Focus on Price
X
1153896899\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle46\0aBlocklin: Cable Shouldn’t Focus
on
Price9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6354764.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|CTAM Recap: Beales Remains
Upbeat
X
1153953181\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle33\0aCTAM Recap: Beales Remains
Upbeat9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355095.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Consumer Group: Comcast Ate Pa.
X
1153927499\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle31\0aConsumer Group: Comcast Ate
Pa.9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355442.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Cox Campaign Makes CTAM Hall of
Fame
X
1153896900\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle36\0aCox Campaign Makes CTAM Hall of
Fame9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355045.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Cox to Hike R.I. Rates
X
1153953181\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle22\0aCox to Hike R.I.
Rates9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355509.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Dressler, Vidich Join MusicNet
Board
X
1153896899\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle36\0aDressler, Vidich Join MusicNet
Board9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355000.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Liberty Global Wraps UPC France
Sale
X
1153896900\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle36\0aLiberty Global Wraps UPC France
Sale9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355009.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Marketers: Trust Your Instincts
X
1153945680\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle31\0aMarketers: Trust Your
Instincts9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6354831.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Md. County Fires Back at
Verizon
X
1153899599\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle32\0aMd. County Fires Back at
Verizon9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355292.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Phone Key to Bundle
X
1153915799\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle19\0aPhone Key to
Bundle9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6354839.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Power Outage Hits Charter
Headquarters
X
1153896900\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle38\0aPower Outage Hits Charter
Headquarters9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355096.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|RCN Gets Pa. Franchise
X
1153896900\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle22\0aRCN Gets Pa.
Franchise9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355044.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Reed Business Information
X
1153896899\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle25\0aReed Business
Information9\0aimageLink0\0a4\0alink55\0ahttp://www.reedbusiness.com/index.asp?layout=cahnerscom4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Reed Elsevier Inc.
X
1153896899\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle18\0aReed Elsevier
Inc.9\0aimageLink0\0a4\0alink29\0ahttp://www.reed-elsevier.com/4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|TV One Sets Smiley, Cosby
Specials
X
1153920839\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle34\0aTV One Sets Smiley, Cosby
Specials9\0aimageLink0\0a4\0alink50\0ahttp://www.multichannel.com/article/CA6355006.html4\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X 1500:MultiChannel Cable Industry News|Terms and Conditions of Use
X
1153896898\0a17\0a1153728443.0000007\0a+1728000\0a 0\0a0\0a0\0a0\0a10\0a8\0aimageURL0\0a8\0afeedName3 2\0aMultiChannel
Cable Industry News5\0atitle27\0aTerms and Conditions of
Use9\0aimageLink0\0a4\0alink81\0ahttp://www.multichannel.com/index.asp?layout=contentinfodetail&articleid=CA318 7354\0adate31\0aMon,
24 Jul 2006 01:07:23 -07009\0afeedTitle52\0aMultichannel News: The
Cable Industry
Book-of-Record15\0alink|isPostBack5\0afalse3\0aurl57\0ahtt p://www.feedfire.com/site/rss.cgi?ChanContentId=0160129\0atimestamp16\0a2006 -07-24
01:07
X
1514:http:%2F%2Fwww.nytimes.com%2Fservices%2Fxml%2 Frss%2Fnyt%2FBusiness.xml
X
2147483647\0a17\0a1153707085.0839488\0ainfinity116 \0ahttp://kndaemon:Bran10916469don (AT) 209 (DOT) 172.120.217:80/kn/kness/plugins/channel_sources/FeedWatcher/kn_routes/119237947210\0a119237947262\0ahttp://cv.knx.com/kn/kness/plugins/channel_sources/FeedWatcher0\0a0\0a21\0a8\0afeedName22\0aNY
Times Business
News5\0atopic94\0a/kness/channels/http:%2F%2Fwww.nytimes.com%2Fservices%2Fxml%2Frss% 2Fnyt%2FBusiness.xml/knitems11\0adisplayname7\0aknadmin10\0aitem_topic9 2\0a/kness/channels/http:%2F%2Fwww.nytimes.com%2Fservices%2Fxml%2Frss% 2Fnyt%2FBusiness.xml/items6\0auserid7\0aknadmin18\0afw_refresh_minutes1 \0a513\0akn_event_hash16\0ac54ce9ca57a1f3e813\0ach annel_topic94\0a/kness/channels/http:%2F%2Fwww.nytimes.com%2Fservices%2Fxml%2Frss% 2Fnyt%2FBusiness.xml/channel9\0acopyright0\0a20\0akness_channel_plugin4 2\0a/kness/plugins/channel_sources/FeedWatcher9\0akness_url56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml18\0akness_created_with11\0aFeedWatche r3\0aTTL2\0a4821\0aExpirationOptionsType3\0ahrs4\0 alink0\0a11\0aauthor_name0\0a9\0afeedTitle22\0aNY
Times Business
News18\0afetchFrequencyType3\0amin11\0adescription 22\0aNY Times
Business News7\0avisible4\0atrue5\0aemail0\0a
X 1518:NY Times Business
News|http://select.nytimes.com/2006/07/23...ey/23gret.html
X
1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a107\0aIt
is becoming clearer that at some companies almost everything about
stock options is apparently a
mirage.13\0a16\0aguid|isPermaLink5\0afalse8\0aimag eURL63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business News5\0atitle53\0a[TS] At the Options Buffet, Some Got a
Bigger
Helping9\0aimageLink48\0ahttp://www.nytimes.com/pages/business/index.html4\0alink67\0ahttp://select.nytimes.com/2006/07/23/business/yourmoney/23gret.html4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid67\0a http://select.nytimes.com/2006/07/23/business/yourmoney/23gret.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:006\0aauthor18\0aGRETCHEN MORGENSON
X 1518:NY Times Business
News|http://www.nytimes.com/2006/07/23/bu...3mortgage.html
X 1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a98\0aAs
payments on mortgages balloon, many Americans have found a way to put
off the day of
reckoning.13\0a16\0aguid|isPermaLink5\0afalse8\0ai mageURL63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business News5\0atitle45\0aRe-Refinancing, and Putting Off
Mortgage
Pain9\0aimageLink48\0ahttp://www.nytimes.com/pages/business/index.html4\0alink123\0ahttp://www.nytimes.com/2006/07/23/business/23mortgage.html?ex=1311307200&en=e8fca1b3003366e5& ei=5088&partner=rssnyt&emc=rss4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid58\0a http://www.nytimes.com/2006/07/23/business/23mortgage.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:006\0aauthor25\0aVIKAS BAJAJ and RON NIXON
X 1518:NY Times Business
News|http://www.nytimes.com/2006/07/23/business/23tax.html
X
1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a151\0aThe
Bush administration will eliminate nearly half of the lawyers who
handle gift and estate tax returns, which are filed for the wealthiest
Americans.13\0a16\0aguid|isPermaLink5\0afalse8\0ai mageURL63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business News5\0atitle26\0aI.R.S. to Cut Tax
Auditors9\0aimageLink48\0ahttp://www.nytimes.com/pages/business/index.html4\0alink118\0ahttp://www.nytimes.com/2006/07/23/business/23tax.html?ex=1311307200&en=b03aaef959e9ae64&ei=50 88&partner=rssnyt&emc=rss4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid53\0a http://www.nytimes.com/2006/07/23/business/23tax.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:006\0aauthor18\0aDAVID CAY JOHNSTON
X 1518:NY Times Business
News|http://www.nytimes.com/2006/07/23/bu...ey/23advi.html
X
1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a116\0aThe
sun is shining and you\c2\92re itching to spend the day outdoors. Is it
acceptable to call in sick when you\c2\92re
not?13\0a16\0aguid|isPermaLink5\0afalse8\0aimageUR L63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business News5\0atitle55\0aCareer Couch: Hello, Boss. I Feel a
Headache Coming
On.9\0aimageLink48\0ahttp://www.nytimes.com/pages/business/index.html4\0alink129\0ahttp://www.nytimes.com/2006/07/23/business/yourmoney/23advi.html?ex=1311307200&en=bc670a5f876b2838&ei=5 088&partner=rssnyt&emc=rss4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid64\0a http://www.nytimes.com/2006/07/23/business/yourmoney/23advi.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:006\0aauthor12\0aMATT VILLANO
X 1518:NY Times Business
News|http://www.nytimes.com/2006/07/23/bu...y/23arpey.html
X
1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a139\0aAt
American Airlines, the only old-line domestic airline that has never
filed for bankruptcy protection, a grand experiment is playing
out.13\0a16\0aguid|isPermaLink5\0afalse8\0aimageUR L63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business News5\0atitle32\0aAnger Management at American
Air9\0aimageLink48\0ahttp://www.nytimes.com/pages/business/index.html4\0alink130\0ahttp://www.nytimes.com/2006/07/23/business/yourmoney/23arpey.html?ex=1311307200&en=34f9b57c05e40b5f&ei= 5088&partner=rssnyt&emc=rss4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid65\0a http://www.nytimes.com/2006/07/23/business/yourmoney/23arpey.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:006\0aauthor11\0aJEFF BAILEY
X 1518:NY Times Business
News|http://www.nytimes.com/2006/07/23/bu...ey/23boss.html
X
1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a103\0aThe
chief executive of Citizens Financial Group used a college fellowship
to study meditation in
India.13\0a16\0aguid|isPermaLink5\0afalse8\0aimage URL63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business News5\0atitle29\0aThe Boss: Learning by
Leaving9\0aimageLink48\0ahttp://www.nytimes.com/pages/business/index.html4\0alink129\0ahttp://www.nytimes.com/2006/07/23/business/yourmoney/23boss.html?ex=1311307200&en=269c8d9921b3486e&ei=5 088&partner=rssnyt&emc=rss4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid64\0a http://www.nytimes.com/2006/07/23/business/yourmoney/23boss.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:006\0aauthor28\0aAs told to EVE TAHMINCIOGLU.
X 1518:NY Times Business
News|http://www.nytimes.com/2006/07/23/bu.../23commod.html
X
1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a121\0aFund
shareholders who were relatively new to commodity investing have
learned at first hand how wildly prices can
gyrate.13\0a16\0aguid|isPermaLink5\0afalse8\0aimag eURL63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business News5\0atitle68\0aInvesting: Commodity Funds: Thrills,
Sure, but It\c2\92s a Long Way
Down9\0aimageLink48\0ahttp://www.nytimes.com/pages/business/index.html4\0alink131\0ahttp://www.nytimes.com/2006/07/23/business/yourmoney/23commod.html?ex=1311307200&en=f22aa1be07fdbe2f&ei =5088&partner=rssnyt&emc=rss4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid66\0a http://www.nytimes.com/2006/07/23/business/yourmoney/23commod.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:006\0aauthor17\0aJ. ALEX TARQUINIO
X 1518:NY Times Business
News|http://www.nytimes.com/2006/07/23/bu...ey/23cont.html
X 1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a72\0aAs
social ties weaken, maybe the free market needs a sterner
taskmaster.13\0a16\0aguid|isPermaLink5\0afalse8\0a imageURL63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business News5\0atitle42\0aOn the Contrary: Long Live the Nanny
State9\0aimageLink48\0ahttp://www.nytimes.com/pages/business/index.html4\0alink129\0ahttp://www.nytimes.com/2006/07/23/business/yourmoney/23cont.html?ex=1311307200&en=c6c3d991d4030b4b&ei=5 088&partner=rssnyt&emc=rss4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid64\0a http://www.nytimes.com/2006/07/23/business/yourmoney/23cont.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:006\0aauthor11\0aDANIEL AKST
X 1518:NY Times Business
News|http://www.nytimes.com/2006/07/23/bu...rrections.html
X
1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a238\0aAn
article last Sunday about the challenges facing Bill Ford, the chief
executive of the Ford Motor Company, referred incorrectly to plant
closings laid out in its Way Forward plan. It would close 14 plants by
2012, not two dozen by
2010.12\0a16\0aguid|isPermaLink5\0afalse8\0aimageU RL63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business
News5\0atitle11\0aCorrections9\0aimageLink48\0ahtt p://www.nytimes.com/pages/business/index.html4\0alink136\0ahttp://www.nytimes.com/2006/07/23/business/yourmoney/23corrections.html?ex=1311307200&en=bb12f739edf55a 3e&ei=5088&partner=rssnyt&emc=rss4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid71\0a http://www.nytimes.com/2006/07/23/business/yourmoney/23corrections.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:00
X 1518:NY Times Business
News|http://www.nytimes.com/2006/07/23/bu...y/23count.html
X
1153866712\0a17\0a1153627200.0000007\0a+1728000\0a 0\0a0\0a0\0a17\0aWill
Agriculture.13\0a16\0aguid|isPermaLink5\0afalse8\0 aimageURL63\0ahttp://graphics.nytimes.com/images/section/NytSectionHeader.gif8\0afeedName22\0aNY
Times Business News5\0atitle54\0aWill Agriculture Stay a Bright Spot in
the Trade
Data?9\0aimageLink48\0ahttp://www.nytimes.com/pages/business/index.html4\0alink130\0ahttp://www.nytimes.com/2006/07/23/business/yourmoney/23count.html?ex=1311307200&en=e3fdc06c6866647d&ei= 5088&partner=rssnyt&emc=rss4\0adate31\0aSat,
22 Jul 2006 21:00:00 -07009\0afeedTitle14\0aNYT >
Business15\0alink|isPostBack5\0afalse4\0aguid65\0a http://www.nytimes.com/2006/07/23/business/yourmoney/23count.html3\0aurl56\0ahttp://www.nytimes.com/services/xml/rss/nyt/Business.xml9\0atimestamp16\0a2006-07-22
21:006\0aauthor17\0aHUBERT B. HERRING
DATA=END
SHAR_EOF
(set 20 06 08 04 13 51 46 'bad_only_12.txt'; eval "$shar_touch") &&
chmod 0644 'bad_only_12.txt' ||
$echo 'restore of' 'bad_only_12.txt' 'failed'
if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
&& ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null;
then
md5sum -c << SHAR_EOF >/dev/null 2>&1 \
Quote:
| $echo 'bad_only_12.txt:' 'MD5 check failed'
32c44128307284f17885c8b0b9d4f85e bad_only_12.txt
|
SHAR_EOF
else
shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'bad_only_12.txt'`"
test 42737 -eq "$shar_count" ||
$echo 'bad_only_12.txt:' 'original size' '42737,' 'current size'
"$shar_count!"
fi
fi
# ============= GNUmakefile ==============
if test -f 'GNUmakefile' && test "$first_param" != -c; then
$echo 'x -' SKIPPING 'GNUmakefile' '(file already exists)'
else
$echo 'x -' extracting 'GNUmakefile' '(text)'
sed 's/^X//' << 'SHAR_EOF' > 'GNUmakefile' &&
X
X
readevents: readevents.o
X gcc -Wl,-E readevents.o
.../../../../Support/BerkeleyDB/build_unix/libdb.a -lpthread -lm
-lstdc++ -o readevents
X
readevents.o: readevents.cpp
X gcc -D_REENTRANT=1 -DKN_PRIVATE -g -ggdb3 -O0 -fPIC -Wall -Wno-unused
-mcpu=i686 -D_GNU_SOURCE -DHAVE_CMMSG=1 -DUSE_FIONREAD=1
-DHAVE_COND_EINTR=1 -DUSE_FD_SETSIZE=65536
-I../../../../Support/BerkeleyDB/build_unix
-I../../../../Support/BerkeleyDB/include -DSECONDARY_INDEX_WORKS
-fno-exceptions -fno-rtti -c -o readevents.o readevents.cpp
SHAR_EOF
(set 20 06 08 04 13 51 46 'GNUmakefile'; eval "$shar_touch") &&
chmod 0644 'GNUmakefile' ||
$echo 'restore of' 'GNUmakefile' 'failed'
if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
&& ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null;
then
md5sum -c << SHAR_EOF >/dev/null 2>&1 \
Quote:
| $echo 'GNUmakefile:' 'MD5 check failed'
2ece128604148bf294ecfba817925060 GNUmakefile
|
SHAR_EOF
else
shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'GNUmakefile'`"
test 509 -eq "$shar_count" ||
$echo 'GNUmakefile:' 'original size' '509,' 'current size'
"$shar_count!"
fi
fi
# ============= readevents.cpp ==============
if test -f 'readevents.cpp' && test "$first_param" != -c; then
$echo 'x -' SKIPPING 'readevents.cpp' '(file already exists)'
else
$echo 'x -' extracting 'readevents.cpp' '(text)'
sed 's/^X//' << 'SHAR_EOF' > 'readevents.cpp' &&
X
#include <cassert>
#include <cstdlib>
#include <stdio.h>
#include <string>
#include "db.h"
X
using std::string;
X
#ifndef MIN
#define MIN(a,b) ((a<b)?(a)

b))
#endif
X
class JustReadEvents {
X string m_dirname;
X DB_ENV* m_dbe;
X DB* m_pdb;
X DB* m_sdb;
X
public:
X JustReadEvents( string dirname );
X
X bool open(string eventFileName, string indexFileName, bool
createSecondary = false);
X
X int32_t ReadEventsThruSecondary() const;
X bool unpackEventKeyTopicId(const DBT& skey,
X string& sTopicId,
X int& sLen) const ;
X bool unpackString(string& value, const string &buffer, int &index)
const;
};
X
int main( int argc, char *argv[] )
{
X string dbDir(".");
X int optind = 1;
X if (optind < argc) {
X dbDir = argv[optind++];
X }
X string eventFile("events.db");
X if (optind < argc) {
X eventFile = argv[optind++];
X }
X string eventIndexFile("eventsByTime.db");
X if (optind < argc) {
X eventIndexFile = argv[optind++];
X }
X
X JustReadEvents reader( dbDir );
X if (reader.open( eventFile, eventIndexFile, true ))
X return( (0 == reader.ReadEventsThruSecondary()) ? 0 : 1);
X else {
X fprintf(stderr,"Couldn't open the database");
X return 2;
X }
}
X
JustReadEvents::JustReadEvents(
X string dirname
) :
X m_dirname(dirname)
{}
X
// Secondary index generator. Uses the first part of the primary key,
// plus a part of the data record, so it has to construct a new buffer
and
// hand it to BDB to be freed.
int getTopicAndTime(
X DB *dbp,
X const DBT *pkey,
X const DBT *pdata,
X DBT *skey
)
{
X string topicId;
X
X JustReadEvents* eventdb = static_cast<JustReadEvents
*>(dbp->app_private);
X
X if (!eventdb)
X {
X fprintf(stderr, "Null event class pointer in secondary
database struct\n");
X return (-1);
X }
X
X int unused = 0;
X if (!eventdb->unpackEventKeyTopicId(*pkey, topicId, unused) )
X {
X fprintf(stderr,
X "knpersistence: Primary key (%.*s) has bad topic
format\n",
X pkey->size,static_cast<char *>(pkey->data));
X return (-1);
X }
X
X // Get the kn_time_t into a KnString
X string buffer(static_cast<char *>(pdata->data), pdata->size);
X int index = buffer.find('\n') + 1;
X
X string time ;
X if (!eventdb->unpackString(time, buffer, index)) {
X fprintf(stderr, "kn_time_t not packed properly\n");
X }
X
X // Create the new key string
X string newKey(topicId);
X newKey += ":" ;
X newKey += time;
X
X // Make the key out of the string
X // Arrange it so Berkeley DB can free the string once it's done
with it.
X memset(skey, 0, sizeof(DBT));
X int lenTemp ;
X skey->data = strdup(newKey.c_str());
X skey->size = newKey.length() ;
X skey->flags = DB_DBT_APPMALLOC;
X
#if 0
X fprintf(stderr,"Created skey '%.*s'@%p from pkey '%.*s' data
'%.*s%s\n",
#endif
X fprintf(stderr,"Created skey '%.*s'@%p from pkey '%.*s'\n",
X skey->size,static_cast<char *>(skey->data),
X skey->data,
X pkey->size,static_cast<char *>(pkey->data)
#if 0
X ,MIN(pdata->size,256), static_cast<char *>(pdata->data),
X pdata->size > 256 ? "..." : ""
#endif
X );
X
X return (0);
}
X
bool
JustReadEvents:

pen(
X string eventFileName,
X string indexFileName,
X bool createSecondary
) {
X int status;
X bool bOK = true ;
X
X // from Knp::recoverFromDB()
X m_dbe = 0;
X
X if ((status = db_env_create(&m_dbe, 0)) != 0)
X {
X fprintf(stderr, "Error creating environment for '%s' database:
%s\n",
X m_dirname.c_str(), db_strerror(status));
X return false;
X }
X
X if ((status = m_dbe->open(m_dbe, m_dirname.c_str(),
X DB_INIT_MPOOL
X | DB_CREATE
X | DB_THREAD
X , 0664)) != 0)
X {
X fprintf(stderr,
X "Error opening environment for '%s' db: %s\n",
X m_dirname.c_str(), db_strerror(status));
X return false;
X }
X
X // from Knp::dbopen( const KnString *filename, DB *&db, void
*app_private)
X if ( 0 != (status = db_create(&m_pdb, m_dbe, 0)) )
X {
X fprintf(stderr,
X "Error creating handle for database '%s': %s\n",
X eventFileName.c_str(), db_strerror(status));
X return false;
X }
X
X if ( 0 != (status = m_pdb->open(m_pdb, NULL,
eventFileName.c_str(), 0, DB_BTREE,
X DB_THREAD, 0664)) )
X {
X fprintf(stderr,
X "Error opening db in '%s'. ERRNO=%i ERRMSG=%s\n",
X eventFileName.c_str(), status, db_strerror(status));
X
X return false;
X }
X
X // From Knp::dbopenSecondary(
X if ( 0 != (status = db_create(&m_sdb, m_dbe, 0)))
X {
X fprintf(stderr,
X "Error creating handle for database '%s': %s\n",
X indexFileName.c_str(), db_strerror(status));
X
X bOK = false ;
X }
X
X if ( bOK && 0 != (status = m_sdb->set_flags(m_sdb, DB_DUP |
DB_DUPSORT)) )
X {
X fprintf(stderr,
X "Error setting flags on '%s'. ERRNO=%i ERRMSG=%s\n",
X indexFileName.c_str(), status, db_strerror(status));
X
X bOK = false ;
X }
X
X u_int32_t sdb_flags = DB_THREAD;
X if (createSecondary)
X {
X sdb_flags |= DB_CREATE;
X }
X
X if ( bOK && 0 != (status = m_sdb->open(m_sdb, NULL,
indexFileName.c_str(), 0,
X DB_BTREE, sdb_flags, 0664)) )
X {
X fprintf(stderr,
X "Error opening index in '%s'. ERRNO=%i ERRMSG=%s\n",
X indexFileName.c_str(), status, db_strerror(status));
X
X bOK = false;
X }
X
X fprintf(stderr,"Associating indexFileName '%s' (pdb %p, sdb
%p)\n",
X indexFileName.c_str(), m_pdb, m_sdb );
X
X m_sdb->app_private = this;
X
X if ( bOK && 0 != (status = m_pdb->associate(m_pdb, NULL, m_sdb,
getTopicAndTime, DB_CREATE)) )
X {
X fprintf(stderr,
X "Error associating index '%s'. ERRNO=%i ERRMSG=%s\n",
X indexFileName.c_str(), status, db_strerror(status));
X
X bOK = false ;
X }
X
X if (!bOK)
X {
X if ( 0 != m_sdb )
X {
X m_sdb->close(m_sdb,0) ;
X }
X m_sdb = 0 ;
X }
X else
X {
X fprintf(stderr,"Successfully opened index %s\n",
indexFileName.c_str());
X }
X return bOK ;
}
X
int32_t JustReadEvents::ReadEventsThruSecondary() const
{
X if (!m_sdb)
X {
X fprintf(stderr, "Database not open\n");
X return -2000;
X }
X DB *sdb = m_sdb;
X
X DBC *dbc;
X DBT skey, pkey, data;
X const uint32_t operation = DB_NEXT;
X int errors = 0;
X
X memset(&skey, 0, sizeof(skey));
X memset(&pkey, 0, sizeof(pkey));
X memset(&data, 0, sizeof(data));
X
X fprintf(stderr,"Opening cursor for database pointer %p\n",sdb);
X
X int32_t status = 0;
X if ( 0 != (status = sdb->cursor(sdb, 0, &dbc, 0)) )
X {
X fprintf(stderr, "Error opening event database cursor: '%s'\n",
db_strerror(status));
X return status;
X }
X
X // Cycle through each event in the database
X while (0 == ( status = dbc->c_pget(dbc,&skey, &pkey, &data,
operation)) )
X {
X fprintf(stdout,
X "examining skey @%p '%.*s' pkey @%p '%.*s' data %lu@%p
'%.*s%s\n",
X skey.data,skey.size,static_cast<char *>(skey.data),
X pkey.data,pkey.size,static_cast<char *>(pkey.data),
X static_cast<unsigned long>(data.size),data.data,
X MIN(data.size,256), static_cast<char
*>(data.data),data.size > 256 ? "..." : ""
X );
X string sTopic, pTopic;
X int sLen, pLen;
X assert(unpackEventKeyTopicId(skey,sTopic,sLen) && "Not an
event key!");
X assert(unpackEventKeyTopicId(pkey,pTopic,pLen) && "Not an
event key!");
X if (sTopic != pTopic)
X {
X fprintf(stderr,"Mismatched topic identifiers: %s != %s\n",
X sTopic.c_str(), pTopic.c_str());
X ++errors;
X }
X }
X dbc->c_close(dbc);
X if (status != DB_NOTFOUND)
X {
X fprintf(stderr,"Returning status %d",status);
X return status ;
X }
X fprintf(stderr,"Returning status %d",errors);
X return errors;
}
X
bool
JustReadEvents::unpackEventKeyTopicId(const DBT &key, string&
topicId,int& next) const
{
X string buffer(static_cast<char*>(key.data), key.size);
X next = buffer.find(':');
X topicId.clear();
X topicId.append(buffer.c_str(), next);
X ++next;
X return (topicId.length() > 0) ;
}
X
bool
JustReadEvents::unpackString(string& value, const string &buffer, int
&index) const
{
X int len = atoi(buffer.c_str() + index);
X
X index = buffer.find('\n', index) + 1;
X
X if (len > 0)
X {
X value.clear();
X value.append(buffer.c_str() + index, len);
X index += len;
X }
X return true;
}
X
SHAR_EOF
(set 20 06 08 04 13 51 46 'readevents.cpp'; eval "$shar_touch") &&
chmod 0444 'readevents.cpp' ||
$echo 'restore of' 'readevents.cpp' 'failed'
if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
&& ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null;
then
md5sum -c << SHAR_EOF >/dev/null 2>&1 \
Quote:
| $echo 'readevents.cpp:' 'MD5 check failed'
395218d2876b476791bcd218146a482d readevents.cpp
|
SHAR_EOF
else
shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'readevents.cpp'`"
test 8860 -eq "$shar_count" ||
$echo 'readevents.cpp:' 'original size' '8860,' 'current size'
"$shar_count!"
fi
fi
rm -fr _sh24862
exit 0