mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 16:15:32 +02:00
adding more tests
This commit is contained in:
parent
c46d93058f
commit
a11bb1293b
15 changed files with 13575 additions and 0 deletions
280
resources/tests/readability/pixnet/expected.html
Normal file
280
resources/tests/readability/pixnet/expected.html
Normal file
|
@ -0,0 +1,280 @@
|
|||
<article><div id="readability-page-1">
|
||||
<p>
|
||||
<a href="http://stevenhgm.pixnet.net/album/photo/470389413" target="_blank"><img title="12-IMG_3886.jpg" src="http://pic.pimg.tw/stevenhgm/1387894842-1217674167.jpg" alt="12-IMG_3886.jpg" original="http://pic.pimg.tw/stevenhgm/1387894842-1217674167.jpg" width="521" height="359"></a>
|
||||
</p>
|
||||
<p><span>一波波<span>接續性</span>低溫寒流報到 已將新竹尖石鄉後山一帶層層山巒披上嫣紅的彩衣</span>
|
||||
</p>
|
||||
<p><span>玉峰道路一路上雲氣山嵐滯留山頭 順路下切<span>蜿蜒道路<span>後不久即抵達</span>來到</span>"玉峰國小"</span>
|
||||
</p>
|
||||
<p><span>"美樹"美如其名偌大楓香樹早已呈現金黃 泛紅色彩也是愛攝人仕所喜愛造訪之地</span></p>
|
||||
<p><span>第二次造訪美樹發現到營區變了 印象中以前生冷招牌換成了<span>原木招牌可謂</span>匠心獨運</span>
|
||||
</p>
|
||||
<p><span>燻黑<span>原木</span>加上金黃色醒目字體 加上了貓頭鷹原木創作也充分發揮了裝飾藝術功力</span>
|
||||
</p>
|
||||
<p><span><span><span>營區內</span></span>除了露營、民宿、餐飲</span><span><span>、</span>賞楓項目<span>多了許多原木飾品更有畫龍點睛加乘效果</span></span>
|
||||
</p>
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470396919" target="_blank"><img title="30-IMG_4228.jpg" src="http://pic.pimg.tw/stevenhgm/1387894971-1486345289.jpg" alt="30-IMG_4228.jpg" original="http://pic.pimg.tw/stevenhgm/1387894971-1486345289.jpg"></a></span></p>
|
||||
<p><span>廣受歡迎的美樹營地有個很大特色就是<span>楓紅時期楓香樹由綠轉黃、轉紅到楓紅層層</span> </span>
|
||||
</p>
|
||||
<p><span><span>一來到"美樹"馬上眼睛為之一亮 也會深深地為那</span></span><span><span>多種顏色多層次渲染之下楓紅而迷惑</span></span>
|
||||
</p>
|
||||
<p><span><span><span><span>不同格調</span></span>就是從入口處這塊招牌<span><span><span><span>第一眼<span><span><span><span>開始</span></span>
|
||||
</span>
|
||||
</span> 木頭招牌</span>
|
||||
</span>
|
||||
</span>
|
||||
</span>、貓頭鷹裝飾品勾勒出美樹的風格</span>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470396943" target="_blank"><img title="31-IMG_4231.jpg" src="http://pic.pimg.tw/stevenhgm/1387894979-1252095111.jpg" alt="31-IMG_4231.jpg" original="http://pic.pimg.tw/stevenhgm/1387894979-1252095111.jpg"></a></span></p>
|
||||
<p><span> 每年12月向來是攝影班外拍的絕佳場所之一 楓紅期間入園費$50元</span></p>
|
||||
<p><span>園區給愛攝一族淨空場景而不是散搭帳蓬之下反</span><span>而影響拍照畫面與構圖取景</span></p>
|
||||
<p><span>露營的話則須待中午過後再進場搭帳的彈性做法個人也相當支持這樣的權宜之計</span></p>
|
||||
|
||||
|
||||
<p><span> </span>
|
||||
<a href="http://stevenhgm.pixnet.net/album/photo/470389413" target="_blank"><img title="P1610088.jpg" src="http://pic.pimg.tw/stevenhgm/1387971416-4261675924.jpg" alt="P1610088.jpg" original="http://pic.pimg.tw/stevenhgm/1387971416-4261675924.jpg"></a>
|
||||
</p>
|
||||
<p> <span>來到現場已是落葉飄飄堆疊滿地 不時隨著風吹雨襲而葉落垂地</span></p>
|
||||
|
||||
|
||||
<p><span> </span>
|
||||
<a href="http://stevenhgm.pixnet.net/album/photo/470389413" target="_blank"><img title="P1610069.jpg" src="http://pic.pimg.tw/stevenhgm/1387971406-2480195851.jpg" alt="P1610069.jpg" original="http://pic.pimg.tw/stevenhgm/1387971406-2480195851.jpg"></a>
|
||||
</p>
|
||||
<p><span>不忍踩過剛剛掉落的樹葉 沿著前人足跡踏痕輕踩而行</span></p>
|
||||
<p><span>雖然只是一廂情願的想法 終究還是不可避免地將會化為塵土</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470383005" target="_blank"><img title="02-P1610080.jpg" src="http://pic.pimg.tw/stevenhgm/1387894752-3567294980.jpg" alt="02-P1610080.jpg" original="http://pic.pimg.tw/stevenhgm/1387894752-3567294980.jpg"></a> </span></p>
|
||||
<p><span> 葉落繽紛顯得幾分蕭瑟氣息 空氣中可以嗅得出來<span>依然</span>瀰漫著濕寒水氣</span>
|
||||
</p>
|
||||
<p><span>偶而還會飄下來一些霧氣水滴 不時張望尋找最佳楓葉主題</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470384469" target="_blank"><img title="04-P1610087.jpg" src="http://pic.pimg.tw/stevenhgm/1387894771-2897027724.jpg" alt="04-P1610087.jpg" original="http://pic.pimg.tw/stevenhgm/1387894771-2897027724.jpg"></a></span></p>
|
||||
<p><span> 外拍的攝影班學員一堆早已不時穿梭其間</span></p>
|
||||
<p><span>各自努力地找尋自認為最好的拍攝角度</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470384925" target="_blank"><img title="05-P1610099.jpg" src="http://pic.pimg.tw/stevenhgm/1387894778-2035483089.jpg" alt="05-P1610099.jpg" original="http://pic.pimg.tw/stevenhgm/1387894778-2035483089.jpg"></a></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470389413" target="_blank"><img title="P1610095.jpg" src="http://pic.pimg.tw/stevenhgm/1387897405-3236217457.jpg" alt="P1610095.jpg" original="http://pic.pimg.tw/stevenhgm/1387897405-3236217457.jpg"></a></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470389803" target="_blank"><img title="13-IMG_3891.jpg" src="http://pic.pimg.tw/stevenhgm/1387894848-3695967443.jpg" alt="13-IMG_3891.jpg" original="http://pic.pimg.tw/stevenhgm/1387894848-3695967443.jpg"></a></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470390760" target="_blank"><img title="15-IMG_3906.jpg" src="http://pic.pimg.tw/stevenhgm/1387894863-3269042540.jpg" alt="15-IMG_3906.jpg" original="http://pic.pimg.tw/stevenhgm/1387894863-3269042540.jpg"></a></span></p>
|
||||
<p><span>"水槽"上面的這幾隻彩繪版貓頭鷹也太可愛了</span></p>
|
||||
<p><span>同樣的造型加上不同色彩宛如賦予不同的生命力一般 cool!</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470391000" target="_blank"><img title="16-IMG_3916.jpg" src="http://pic.pimg.tw/stevenhgm/1387894868-3997219746.jpg" alt="16-IMG_3916.jpg" original="http://pic.pimg.tw/stevenhgm/1387894868-3997219746.jpg"></a></span></p>
|
||||
<p><span> 雨水洗塵後的枝頭固然掉落些葉片是否也洗去塵勞憂傷</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470391519" target="_blank"><img title="17-IMG_3919.jpg" src="http://pic.pimg.tw/stevenhgm/1387894873-1524806724.jpg" alt="17-IMG_3919.jpg" original="http://pic.pimg.tw/stevenhgm/1387894873-1524806724.jpg"></a></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470385711" target="_blank"><img title="06-IMG_3853.jpg" src="http://pic.pimg.tw/stevenhgm/1387894788-105924953.jpg" alt="06-IMG_3853.jpg" original="http://pic.pimg.tw/stevenhgm/1387894788-105924953.jpg"></a></span></p>
|
||||
<p><span> 喜歡拍照的不論是平面掃描、天空搜尋、</span><span>地上地毯式搜索</span></p>
|
||||
<p><span>有如小說偵探一般 不放過蛛絲馬跡地用力尋尋覓覓找尋最美角度</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470386749" target="_blank"><img title="07-P1610104.jpg" src="http://pic.pimg.tw/stevenhgm/1387894798-1063855065.jpg" alt="07-P1610104.jpg" original="http://pic.pimg.tw/stevenhgm/1387894798-1063855065.jpg"></a></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470387232" target="_blank"><img title="08-IMG_3862.jpg" src="http://pic.pimg.tw/stevenhgm/1387894807-309560703.jpg" alt="08-IMG_3862.jpg" original="http://pic.pimg.tw/stevenhgm/1387894807-309560703.jpg"></a></span></p>
|
||||
<p><span> 原本這周是由小朱團長早在一年前就跟"簍信"預定下來的場子</span></p>
|
||||
<p><span>早上從台北出門之際還是小雨不斷細雨紛飛來到此地雖雨已停</span></p>
|
||||
<p><span>但多日來的雨勢不斷已有部分區域水漬成攤並不適合落置帳篷</span></p>
|
||||
<p><span><span>這個季節正是"控溪吊橋"一帶的楓紅變葉時刻 先行走一趟<span><span>秀巒賞景</span></span>
|
||||
</span>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470391732" target="_blank"><img title="18-P1610141.jpg" src="http://pic.pimg.tw/stevenhgm/1387894882-1881930036.jpg" alt="18-P1610141.jpg" original="http://pic.pimg.tw/stevenhgm/1387894882-1881930036.jpg"></a></span></p>
|
||||
<p><span>午後從"秀巒"回到美樹之際已經全數撤退只剩下我們三車留下來</span></p>
|
||||
<p><span>唯有"離開地球表面"睡車上的才可以不受到地上泥濘而影響</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470392077" target="_blank"><img title="19-IMG_3933.jpg" src="http://pic.pimg.tw/stevenhgm/1387894887-407829597.jpg" alt="19-IMG_3933.jpg" original="http://pic.pimg.tw/stevenhgm/1387894887-407829597.jpg"></a></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470390364" target="_blank"><img title="14-P1610134.jpg" src="http://pic.pimg.tw/stevenhgm/1387894857-470378275.jpg" alt="14-P1610134.jpg" original="http://pic.pimg.tw/stevenhgm/1387894857-470378275.jpg"></a></span></p>
|
||||
<p><span> 午後山嵐興起雲氣遊蕩<span>盤旋在對岸山頭 人潮來來去去似乎也沒有減少</span></span>
|
||||
</p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470403381" target="_blank"><img title="44-P1610283.jpg" src="http://pic.pimg.tw/stevenhgm/1387895099-4119123008.jpg" alt="44-P1610283.jpg" original="http://pic.pimg.tw/stevenhgm/1387895099-4119123008.jpg"></a></span></p>
|
||||
<p><span> 美樹民宿有開設餐廳 室內簡單佈置提供伙食餐飲 <br></span></p>
|
||||
|
||||
|
||||
<p>
|
||||
<a href="http://stevenhgm.pixnet.net/album/photo/470389413" target="_blank"><img title="P1610212.jpg" src="http://pic.pimg.tw/stevenhgm/1387971426-4277312474.jpg" alt="P1610212.jpg" original="http://pic.pimg.tw/stevenhgm/1387971426-4277312474.jpg"></a>
|
||||
</p>
|
||||
<p> <span>這兩間是民宿房間 跟著民宿主人"簍信"聊起來還提到日後將改變成兩層木屋</span></p>
|
||||
<p><span>一樓則是咖啡飲料/賣店提供訪客來賓有個落腳席座之地 二樓才會是民宿房間</span></p>
|
||||
<p><span>心中有了計畫想法才會有日後的夢想藍圖 相信將會改變得更好的民宿露營環境<br></span></p>
|
||||
|
||||
<p>
|
||||
<a href="http://stevenhgm.pixnet.net/album/photo/470389413" target="_blank"><img title="P1610219.jpg" src="http://pic.pimg.tw/stevenhgm/1387971436-2828193592.jpg" alt="P1610219.jpg" original="http://pic.pimg.tw/stevenhgm/1387971436-2828193592.jpg"></a>
|
||||
</p>
|
||||
<p><span> 民宿前這一大區楓香林為土質營位 大致區分前、後兩個營區</span></p>
|
||||
<p><span>前面這一區約可搭上十二帳/車/廳 後面那區也大約4~5帳/車/廳</span></p>
|
||||
<p><span>正前方小木屋即是衛浴區 男女分別以左右<span>兩側</span>分開(燒材鍋爐)</span>
|
||||
</p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470388054" target="_blank"><img title="10-P1610114.jpg" src="http://pic.pimg.tw/stevenhgm/1387894823-4061326865.jpg" alt="10-P1610114.jpg" original="http://pic.pimg.tw/stevenhgm/1387894823-4061326865.jpg"></a></span></p>
|
||||
<p><span> 營區水電方便 水槽也很有特色</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470393178" target="_blank"><img title="22-P1610245.jpg" src="http://pic.pimg.tw/stevenhgm/1387894911-3706194096.jpg" alt="22-P1610245.jpg" original="http://pic.pimg.tw/stevenhgm/1387894911-3706194096.jpg"></a></span></p>
|
||||
<p><span> 這次選擇左側地勢高些以防午夜下雨泥濘</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470392404" target="_blank"><img title="20-P1610238.jpg" src="http://pic.pimg.tw/stevenhgm/1387894894-1173705525.jpg" alt="20-P1610238.jpg" original="http://pic.pimg.tw/stevenhgm/1387894894-1173705525.jpg"></a></span></p>
|
||||
<p><span> "野馬"特地帶來了冬至應景食材ㄜ<span>---湯圓</span></span>
|
||||
</p>
|
||||
<p><span>這家還是最近被評比第一名氣的湯圓專賣店 </span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470393130" target="_blank"><img title="21-P1610241.jpg" src="http://pic.pimg.tw/stevenhgm/1387894901-1058040075.jpg" alt="21-P1610241.jpg" original="http://pic.pimg.tw/stevenhgm/1387894901-1058040075.jpg"></a></span></p>
|
||||
<p><span> 向來對於湯圓是敬謝不敏 沒想到是出乎意料之外的好吃 <span>沒話說!</span><br></span>
|
||||
</p>
|
||||
|
||||
|
||||
<p><span> <a href="http://stevenhgm.pixnet.net/album/photo/470394156" target="_blank"><img title="24-IMG_4113.jpg" src="http://pic.pimg.tw/stevenhgm/1387894925-1582979930.jpg" alt="24-IMG_4113.jpg" original="http://pic.pimg.tw/stevenhgm/1387894925-1582979930.jpg"></a></span></p>
|
||||
<p><span> 喜歡原住民朋友的坦率、真誠 要將民宿營地經營的有聲有色並非容易之事</span></p>
|
||||
<p><span><span>午茶時間與"簍信"閒聊分享著他的觀點理念之時很支持對於環境應有生態保護</span> </span>
|
||||
</p>
|
||||
<p><span><span>環保維護是人人有責</span></span><span><span><span><span> 勿以善小而不為不計涓滴之水才可匯集成河</span></span> </span>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470397399" target="_blank"><img title="32-IMG_4248.jpg" src="http://pic.pimg.tw/stevenhgm/1387894989-1689510758.jpg" alt="32-IMG_4248.jpg" original="http://pic.pimg.tw/stevenhgm/1387894989-1689510758.jpg"></a></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470394732" target="_blank"><img title="25-IMG_4152.jpg" src="http://pic.pimg.tw/stevenhgm/1387894933-2886337976.jpg" alt="25-IMG_4152.jpg" original="http://pic.pimg.tw/stevenhgm/1387894933-2886337976.jpg"></a> </span></p>
|
||||
<p><span> 入夜前雨絲終於漸漸緩和下來 雖然氣溫很低卻沒感受到寒冷的跡象</span></p>
|
||||
<p><span>是山谷中少了寒氣還是美樹營區裡的人熱情洋溢暖化了不少寒意</span></p>
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470404359" target="_blank"><img title="IMG_4158.jpg" src="http://pic.pimg.tw/stevenhgm/1387895113-4041265313.jpg" alt="IMG_4158.jpg" original="http://pic.pimg.tw/stevenhgm/1387895113-4041265313.jpg"></a></span></p>
|
||||
<p><span> 聖誕前夕裝點些聖誕飾品 感受一下節慶的氛圍<br></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470394948" target="_blank"><img title="26-P1610261.jpg" src="http://pic.pimg.tw/stevenhgm/1387894940-3359449338.jpg" alt="26-P1610261.jpg" original="http://pic.pimg.tw/stevenhgm/1387894940-3359449338.jpg"></a></span></p>
|
||||
<p><span>晚餐準備了砂鍋魚頭</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470403921" target="_blank"><img title="46-1021221美樹露營.jpg" src="http://pic.pimg.tw/stevenhgm/1387895106-1387217970.jpg" alt="46-1021221美樹露營.jpg" original="http://pic.pimg.tw/stevenhgm/1387895106-1387217970.jpg"></a></span></p>
|
||||
<p><span>"蒯嫂"還特地準備著羊肩排、鹹豬肉、柳葉魚...哇!這哩澎湃哩...</span></p>
|
||||
<p><span> "永老爺"早已備妥了好酒為遠自台南來的蒯兄嫂敬一杯囉</span></p>
|
||||
<p><span>感謝蒯嫂精心準備的好料理 食指大動好菜色感恩ㄟ!</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470395164" target="_blank"><img title="27-IMG_4173.jpg" src="http://pic.pimg.tw/stevenhgm/1387894947-2636431527.jpg" alt="27-IMG_4173.jpg" original="http://pic.pimg.tw/stevenhgm/1387894947-2636431527.jpg"></a></span></p>
|
||||
<p><span> 吃得快精光之際...才想到忘了拍合照...(哇哩咧 ^&*()<br></span></p>
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470395614" target="_blank"><img title="28-IMG_4178.jpg" src="http://pic.pimg.tw/stevenhgm/1387894956-618198074.jpg" alt="28-IMG_4178.jpg" original="http://pic.pimg.tw/stevenhgm/1387894956-618198074.jpg"></a></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470396325" target="_blank"><img title="29-IMG_4188.jpg" src="http://pic.pimg.tw/stevenhgm/1387894961-2201609427.jpg" alt="29-IMG_4188.jpg" original="http://pic.pimg.tw/stevenhgm/1387894961-2201609427.jpg"></a></span></p>
|
||||
<p><span> 隔日睡到很晚才起床 不用拍日出晨光的營地對我來說都是個幸福的睡眠</span></p>
|
||||
<p><span>哪怕是葉落飄零落滿地還是睡夢周公召見而去 起床的事~差點都忘記了</span></p>
|
||||
|
||||
|
||||
<p>
|
||||
<a href="http://stevenhgm.pixnet.net/album/photo/470389413" target="_blank"><img title="IMG_4205.jpg" src="http://pic.pimg.tw/stevenhgm/1387971396-2999285851.jpg" alt="IMG_4205.jpg" original="http://pic.pimg.tw/stevenhgm/1387971396-2999285851.jpg"></a>
|
||||
</p>
|
||||
<p> <span> 昨天細雨紛飛依然打落了不少落葉中間這株整個都快變成枯枝了</span></p>
|
||||
<p><span>昨天依稀凋零稀疏的楓葉殘留今兒個完全不復存在(上周是最美的代名詞)</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470397765" target="_blank"><img title="33-IMG_4255.jpg" src="http://pic.pimg.tw/stevenhgm/1387894999-1588465034.jpg" alt="33-IMG_4255.jpg" original="http://pic.pimg.tw/stevenhgm/1387894999-1588465034.jpg"></a></span></p>
|
||||
<p><span><span>上回來得太早沒能見到楓葉泛紅 這次晚了一周已陸續落葉也</span>無從比對楓葉差異性 </span>
|
||||
</p>
|
||||
<p><span><span> 另一種角度看不論青楓、金黃葉紅的楓香、葉落飄零秋滿霜、落葉枯枝的蕭瑟</span></span>
|
||||
</p>
|
||||
<p><span><span>只要心中自認為是最美最浪漫的一刻 都是美的表徵也是最美的時分</span></span>
|
||||
</p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470398749" target="_blank"><img title="34-P1610269.jpg" src="http://pic.pimg.tw/stevenhgm/1387895007-4184988815.jpg" alt="34-P1610269.jpg" original="http://pic.pimg.tw/stevenhgm/1387895007-4184988815.jpg"></a></span></p>
|
||||
<p><span> 早起的"蒯嫂"已經備好熱騰騰中式稀飯、包子、蔬果 頓時~有幸福的感覺<br></span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470399232" target="_blank"><img title="35-IMG_4303.jpg" src="http://pic.pimg.tw/stevenhgm/1387895016-2193615729.jpg" alt="35-IMG_4303.jpg" original="http://pic.pimg.tw/stevenhgm/1387895016-2193615729.jpg"></a> </span></p>
|
||||
<p><span> 星期天早上趁著攝影團還沒入場先來人物場景特寫</span></p>
|
||||
<p><span>野馬家兩張新"座椅"就當作是試坐囉!拍謝哩</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470400471" target="_blank"><img title="38-IMG_4330.jpg" src="http://pic.pimg.tw/stevenhgm/1387895047-92554161.jpg" alt="38-IMG_4330.jpg" original="http://pic.pimg.tw/stevenhgm/1387895047-92554161.jpg"></a></span></p>
|
||||
|
||||
|
||||
<p>
|
||||
<a href="http://stevenhgm.pixnet.net/album/photo/470389413" target="_blank"><img title="P1610279.jpg" src="http://pic.pimg.tw/stevenhgm/1387971446-966387512.jpg" alt="P1610279.jpg" original="http://pic.pimg.tw/stevenhgm/1387971446-966387512.jpg"></a>
|
||||
</p>
|
||||
<p><span> 難得有此無人美景在楓樹下的聖誕氛圍也一定要來一張才行</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470399946" target="_blank"><img title="37-IMG_4323.jpg" src="http://pic.pimg.tw/stevenhgm/1387895036-848978834.jpg" alt="37-IMG_4323.jpg" original="http://pic.pimg.tw/stevenhgm/1387895036-848978834.jpg"></a></span></p>
|
||||
<p><span> 三家合照(Hero也一定要入鏡的)</span></p>
|
||||
|
||||
|
||||
<p><span> <a href="http://stevenhgm.pixnet.net/album/photo/470401161" target="_blank"><img title="40-IMG_4342.jpg" src="http://pic.pimg.tw/stevenhgm/1387895067-717977929.jpg" alt="40-IMG_4342.jpg" original="http://pic.pimg.tw/stevenhgm/1387895067-717977929.jpg"></a></span></p>
|
||||
<p><span> 接著攝影團入場帶隊老師請求借個時間也來讓學員練習楓樹下的聖誕飾品</span></p>
|
||||
<p><span>此時剛好也遇到早在FB社團相互回應卻頭一次謀面的Mr."大雄"真是幸會了</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470402037" target="_blank"><img title="42-IMG_4382.jpg" src="http://pic.pimg.tw/stevenhgm/1387895083-1227791497.jpg" alt="42-IMG_4382.jpg" original="http://pic.pimg.tw/stevenhgm/1387895083-1227791497.jpg"></a> </span></p>
|
||||
<p><span> 接近中午時分陽光漸露 藍天帷幕再次嶄露頭角 ~ 久違了!</span></p>
|
||||
<p><span>期盼下的天空終於放晴 沒有缺席的藍天還是準時赴約如期出席</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470402682" target="_blank"><img title="41-IMG_4366.jpg" src="http://pic.pimg.tw/stevenhgm/1387895075-2647157523.jpg" alt="41-IMG_4366.jpg" original="http://pic.pimg.tw/stevenhgm/1387895075-2647157523.jpg"></a></span></p>
|
||||
<p><span> 這兩天肉肉(Hero)天雨濕滑無法自由奔跑都快悶壞了</span></p>
|
||||
<p><span>天晴後"蒯嫂"帶著散步遊園也好解解悶</span></p>
|
||||
|
||||
|
||||
<p><span><a href="http://stevenhgm.pixnet.net/album/photo/470402898" target="_blank"><img title="43-IMG_4383.jpg" src="http://pic.pimg.tw/stevenhgm/1387895093-631461272.jpg" alt="43-IMG_4383.jpg" original="http://pic.pimg.tw/stevenhgm/1387895093-631461272.jpg"></a> </span></p>
|
||||
<p><span>收拾好裝備準備離開營地 亮麗的</span><span>天空鮮明對比下的楓樹林又讓人覺得有點捨不得離開</span></p>
|
||||
<p><span><span>道別了"美樹營地"準備前往而行</span>"石磊國小"一個很生疏的小學座落在這深山部落裡</span>
|
||||
</p>
|
||||
<p><span>北橫"石磊部落" 一個從未踏入的陌生之地因為露營之故否則畢生大概也不會路過</span></p>
|
||||
<p><span>三位大叔同行準備走著這段遙遠的路段 下次找機會再來重溫舊夢了.......</span></p>
|
||||
|
||||
<p><span lang="EN-US"><a href="http://tw.myblog.yahoo.com/wu141993/article?mid=104&sc=1" target="_blank"><span lang="EN-US"><span lang="EN-US"><span>美樹營地</span></span>
|
||||
</span>
|
||||
</a> </span><span lang="EN-US"><span>資訊</span></span>
|
||||
</p>
|
||||
<p><span lang="EN-US"><span><span>聯絡電話:</span><span lang="EN-US">03-584-7231</span><span> </span><span lang="EN"> </span><span>行動</span><span lang="EN">:</span><span lang="EN-US"> 0937-141993</span><span lang="EN-US"><br></span><span>林錦武<span lang="EN-US"> (泰雅族名: 摟信)</span></span><span lang="EN"><br></span><span>營地地址:<span>新竹縣尖石鄉玉峰村<span lang="EN-US">6鄰20號</span></span>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
</p>
|
||||
<p><span lang="EN-US"><span>每帳$600 兩間衛浴使用燒材鍋爐/ 兩間全天瓦斯 </span></span><span lang="EN-US"><span>廁所蹲式X 3 </span></span>
|
||||
</p>
|
||||
<p><span lang="EN-US"><span>楓紅期間須過中午才可搭帳 </span></span><span lang="EN-US">水電便利</span></p>
|
||||
<p><strong><span lang="EN-US">GPS: N24 39 16.4 <span> </span>E121 18 19.5</span></strong></p>
|
||||
|
||||
|
||||
<p><span><span>如果您喜歡</span>"<span>史蒂文的家"圖文分享 邀請您到 </span></span><span><a href="https://www.facebook.com/stevenhgm1188" target="_blank"><span>FB </span><span lang="EN-US"><span lang="EN-US">粉絲團</span></span>
|
||||
</a><span>按個"讚"!</span></span>
|
||||
</p>
|
||||
<p><span><span><span>內文有不定期的更新旅遊、露營圖文訊息 </span></span><span><span>謝謝!</span></span>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div></article>
|
4372
resources/tests/readability/pixnet/source.html
Normal file
4372
resources/tests/readability/pixnet/source.html
Normal file
File diff suppressed because it is too large
Load diff
7280
resources/tests/readability/qq/source.html
Normal file
7280
resources/tests/readability/qq/source.html
Normal file
File diff suppressed because it is too large
Load diff
145
resources/tests/readability/quanta-1/expected.html
Normal file
145
resources/tests/readability/quanta-1/expected.html
Normal file
|
@ -0,0 +1,145 @@
|
|||
<article><DIV id="readability-page-1">
|
||||
<div data-reactid="253">
|
||||
<p>
|
||||
A little over half a century ago, chaos started spilling out of a famous experiment. It came not from a petri dish, a beaker or an astronomical observatory, but from the vacuum tubes and diodes of a Royal McBee LGP-30. This “desk” computer — it was the size of a desk — weighed some 800 pounds and sounded like a passing propeller plane. It was so loud that it even got its own office on the fifth floor in Building 24, a drab structure near the center of the Massachusetts Institute of Technology. Instructions for the computer came from down the hall, from the office of a meteorologist named Edward Norton Lorenz.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The story of chaos is usually told like this: Using the LGP-30, Lorenz made paradigm-wrecking discoveries. In 1961, having programmed a set of equations into the computer that would simulate future weather, he found that tiny differences in starting values could lead to drastically different outcomes. This sensitivity to initial conditions, later popularized as the butterfly effect, made predicting the far future a fool’s errand. But Lorenz also found that these unpredictable outcomes weren’t quite random, either. When visualized in a certain way, they seemed to prowl around a shape called a strange attractor.
|
||||
</p>
|
||||
<p>
|
||||
About a decade later, chaos theory started to catch on in scientific circles. Scientists soon encountered other unpredictable natural systems that looked random even though they weren’t: the rings of Saturn, blooms of marine algae, Earth’s magnetic field, <a href="https://www.quantamagazine.org/chaos-theory-in-ecology-predicts-future-populations-20151013/" target="_blank">the number of salmon in a fishery</a>. Then chaos went mainstream with the publication of James Gleick’s <a href="https://www.penguinrandomhouse.com/books/321477/chaos-by-james-gleick/9780143113454/" target="_blank"><em>Chaos: Making a New Science</em></a> in 1987. Before long, Jeff Goldblum, playing the chaos theorist Ian Malcolm, was pausing, stammering and charming his way through lines about the unpredictability of nature in <em>Jurassic Park</em>.
|
||||
</p>
|
||||
<p>
|
||||
All told, it’s a neat narrative. Lorenz, “the father of chaos,” started a scientific revolution on the LGP-30. It is quite literally a textbook case for how the numerical experiments that modern science has come to rely on — in fields ranging from climate science to ecology to astrophysics — can uncover hidden truths about nature.
|
||||
</p>
|
||||
<p>
|
||||
But in fact, Lorenz was not the one running the machine. There’s another story, one that has gone untold for half a century. A year and a half ago, an MIT scientist happened across a name he had never heard before and started to investigate. The trail he ended up following took him into the MIT archives, through the stacks of the Library of Congress, and across three states and five decades to find information about the women who, today, would have been listed as co-authors on that seminal paper. And that material, shared with <em>Quanta</em>, provides a fuller, fairer account of the birth of chaos.
|
||||
</p>
|
||||
<h2>
|
||||
<strong>The Birth of Chaos</strong>
|
||||
</h2>
|
||||
<p>
|
||||
In the fall of 2017, the geophysicist Daniel Rothman, co-director of MIT’s Lorenz Center, was preparing for an upcoming symposium. The meeting would honor Lorenz, who died in 2008, so Rothman revisited Lorenz’s epochal paper, a masterwork on chaos titled “<a href="https://doi.org/10.1175/1520-0469(1963)020%3C0130:DNF%3E2.0.CO;2" target="_blank">Deterministic Nonperiodic Flow</a>.” Published in 1963, it has since attracted thousands of citations, and Rothman, having taught this foundational material to class after class, knew it like an old friend. But this time he saw something he hadn’t noticed before. In the paper’s acknowledgments, Lorenz had written, “Special thanks are due to Miss Ellen Fetter for handling the many numerical computations.”
|
||||
</p>
|
||||
<p>
|
||||
“Jesus … <em>who is Ellen Fetter</em>?” Rothman recalls thinking at the time. “It’s one of the most important papers in computational physics and, more broadly, in computational science,” he said. And yet he couldn’t find anything about this woman. “Of all the volumes that have been written about Lorenz, the great discovery — nothing.”
|
||||
</p>
|
||||
|
||||
<p>
|
||||
With further online searches, however, Rothman found a wedding announcement from 1963. Ellen Fetter had married John Gille, a physicist, and changed her name. A colleague of Rothman’s then remembered that a graduate student named Sarah Gille had studied at MIT in the 1990s in the very same department as Lorenz and Rothman. Rothman reached out to her, and it turned out that <a href="http://pordlabs.ucsd.edu/sgille/" target="_blank">Sarah Gille</a>, now a physical oceanographer at the University of California, San Diego, was Ellen and John’s daughter. Through this connection, Rothman was able to get Ellen Gille, née Fetter, on the phone. And that’s when he learned another name, the name of the woman who had preceded Fetter in the job of programming Lorenz’s first meetings with chaos: Margaret Hamilton.
|
||||
</p>
|
||||
<p>
|
||||
When Margaret Hamilton arrived at MIT in the summer of 1959, with a freshly minted math degree from Earlham College, Lorenz had only recently bought and taught himself to use the LGP-30. Hamilton had no prior training in programming either. Then again, neither did anyone else at the time. “He loved that computer,” Hamilton said. “And he made me feel the same way about it.”
|
||||
</p>
|
||||
<p>
|
||||
For Hamilton, these were formative years. She recalls being out at a party at three or four a.m., realizing that the LGP-30 wasn’t set to produce results by the next morning, and rushing over with a few friends to start it up. Another time, frustrated by all the things that had to be done to make another run after fixing an error, she devised a way to bypass the computer’s clunky debugging process. To Lorenz’s delight, Hamilton would take the paper tape that fed the machine, roll it out the length of the hallway, and edit the binary code with a sharp pencil. “I’d poke holes for ones, and I’d cover up with Scotch tape the others,” she said. “He just got a kick out of it.”
|
||||
</p>
|
||||
</div>
|
||||
<div data-reactid="401">
|
||||
<p>
|
||||
There were desks in the computer room, but because of the noise, Lorenz, his secretary, his programmer and his graduate students all shared the other office. The plan was to use the desk computer, then a total novelty, to test competing strategies of weather prediction in a way you couldn’t do with pencil and paper.
|
||||
</p>
|
||||
<p>
|
||||
First, though, Lorenz’s team had to do the equivalent of catching the Earth’s atmosphere in a jar. Lorenz idealized the atmosphere in 12 equations that described the motion of gas in a rotating, stratified fluid. Then the team coded them in.
|
||||
</p>
|
||||
<p>
|
||||
Sometimes the “weather” inside this simulation would simply repeat like clockwork. But Lorenz found a more interesting and more realistic set of solutions that generated weather that wasn’t periodic. The team set up the computer to slowly print out a graph of how one or two variables — say, the latitude of the strongest westerly winds — changed over time. They would gather around to watch this imaginary weather, even placing little bets on what the program would do next.
|
||||
</p>
|
||||
<p>
|
||||
And then one day it did something really strange. This time they had set up the printer not to make a graph, but simply to print out time stamps and the values of a few variables at each time. As Lorenz later recalled, they had re-run a previous weather simulation with what they thought were the same starting values, reading off the earlier numbers from the previous printout. But those weren’t actually the same numbers. The computer was keeping track of numbers to six decimal places, but the printer, to save space on the page, had rounded them to only the first three decimal places.
|
||||
</p>
|
||||
<p>
|
||||
After the second run started, Lorenz went to get coffee. The new numbers that emerged from the LGP-30 while he was gone looked at first like the ones from the previous run. This new run had started in a very similar place, after all. But the errors grew exponentially. After about two months of imaginary weather, the two runs looked nothing alike. This system was still deterministic, with no random chance intruding between one moment and the next. Even so, its hair-trigger sensitivity to initial conditions made it unpredictable.
|
||||
</p>
|
||||
<p>
|
||||
This meant that in chaotic systems the smallest fluctuations get amplified. Weather predictions fail once they reach some point in the future because we can never measure the initial state of the atmosphere precisely enough. Or, as Lorenz would later present the idea, even a seagull flapping its wings might eventually make a big difference to the weather. (In 1972, the seagull was deposed when a conference organizer, unable to check back about what Lorenz wanted to call an upcoming talk, wrote his own title that switched the metaphor to a butterfly.)
|
||||
</p>
|
||||
</div>
|
||||
<div data-reactid="417">
|
||||
<p>
|
||||
Many accounts, including the one in Gleick’s book, date the discovery of this butterfly effect to 1961, with the paper following in 1963. But in November 1960, Lorenz described it during the Q&A session following <a href="http://eaps4.mit.edu/research/Lorenz/The_Statistical_Prediction_of_Solutions_1962.pdf" target="_blank">a talk he gave</a> at a conference on numerical weather prediction in Tokyo. After his talk, a question came from a member of the audience: “Did you change the initial condition just slightly and see how much different results were?”
|
||||
</p>
|
||||
<p>
|
||||
“As a matter of fact, we tried out that once with the same equation to see what could happen,” Lorenz said. He then started to explain the unexpected result, which he wouldn’t publish for three more years. “He just gives it all away,” Rothman said now. But no one at the time registered it enough to scoop him.
|
||||
</p>
|
||||
<p>
|
||||
In the summer of 1961, Hamilton moved on to another project, but not before training her replacement. Two years after Hamilton first stepped on campus, Ellen Fetter showed up at MIT in much the same fashion: a recent graduate of Mount Holyoke with a degree in math, seeking any sort of math-related job in the Boston area, eager and able to learn. She interviewed with a woman who ran the LGP-30 in the nuclear engineering department, who recommended her to Hamilton, who hired her.
|
||||
</p>
|
||||
<p>
|
||||
Once Fetter arrived in Building 24, Lorenz gave her a manual and a set of programming problems to practice, and before long she was up to speed. “He carried a lot in his head,” she said. “He would come in with maybe one yellow sheet of paper, a legal piece of paper in his pocket, pull it out, and say, ‘Let’s try this.’”
|
||||
</p>
|
||||
<p>
|
||||
The project had progressed meanwhile. The 12 equations produced fickle weather, but even so, that weather seemed to prefer a narrow set of possibilities among all possible states, forming a mysterious cluster which Lorenz wanted to visualize. Finding that difficult, he narrowed his focus even further. From a colleague named Barry Saltzman, he borrowed just three equations that would describe an even simpler nonperiodic system, a beaker of water heated from below and cooled from above.
|
||||
</p>
|
||||
<p>
|
||||
Here, again, the LGP-30 chugged its way into chaos. Lorenz identified three properties of the system corresponding roughly to how fast convection was happening in the idealized beaker, how the temperature varied from side to side, and how the temperature varied from top to bottom. The computer tracked these properties moment by moment.
|
||||
</p>
|
||||
<p>
|
||||
The properties could also be represented as a point in space. Lorenz and Fetter plotted the motion of this point. They found that over time, the point would trace out a butterfly-shaped fractal structure now called the Lorenz attractor. The trajectory of the point — of the system — would never retrace its own path. And as before, two systems setting out from two minutely different starting points would soon be on totally different tracks. But just as profoundly, wherever you started the system, it would still head over to the attractor and start doing chaotic laps around it.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The attractor and the system’s sensitivity to initial conditions would eventually be recognized as foundations of chaos theory. Both were published in the landmark 1963 paper. But for a while only meteorologists noticed the result. Meanwhile, Fetter married John Gille and moved with him when he went to Florida State University and then to Colorado. They stayed in touch with Lorenz and saw him at social events. But she didn’t realize how famous he had become.
|
||||
</p>
|
||||
<p>
|
||||
Still, the notion of small differences leading to drastically different outcomes stayed in the back of her mind. She remembered the seagull, flapping its wings. “I always had this image that stepping off the curb one way or the other could change the course of any field,” she said.
|
||||
</p>
|
||||
<h2>
|
||||
<strong>Flight Checks</strong>
|
||||
</h2>
|
||||
<p>
|
||||
After leaving Lorenz’s group, Hamilton embarked on a different path, achieving a level of fame that rivals or even exceeds that of her first coding mentor. At MIT’s Instrumentation Laboratory, starting in 1965, she headed the onboard flight software team for the Apollo project.
|
||||
</p>
|
||||
<p>
|
||||
Her code held up when the stakes were life and death — even when a mis-flipped switch triggered alarms that interrupted the astronaut’s displays right as Apollo 11 approached the surface of the moon. Mission Control had to make a quick choice: land or abort. But trusting the software’s ability to recognize errors, prioritize important tasks, and recover, the astronauts kept going.
|
||||
</p>
|
||||
<p>
|
||||
Hamilton, who popularized the term “software engineering,” later led the team that wrote the software for Skylab, the first U.S. space station. She founded her own company in Cambridge in 1976, and in recent years her legacy has been celebrated again and again. She won <a href="https://www.nasa.gov/home/hqnews/2003/sep/HQ_03281_Hamilton_Honor.html" target="_blank">NASA’s Exceptional Space Act Award</a> in 2003 and received the <a href="https://obamawhitehouse.archives.gov/the-press-office/2016/11/16/president-obama-names-recipients-presidential-medal-freedom" target="_blank">Presidential Medal of Freedom</a> in 2016. In 2017 she garnered arguably the greatest honor of all: a <a href="https://shop.lego.com/en-US/product/Women-of-NASA-21312" target="_blank">Margaret Hamilton Lego minifigure</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Fetter, for her part, continued to program at Florida State after leaving Lorenz’s group at MIT. After a few years, she left her job to raise her children. In the 1970s, she took computer science classes at the University of Colorado, toying with the idea of returning to programming, but she eventually took a tax preparation job instead. By the 1980s, the demographics of programming had shifted. “After I sort of got put off by a couple of job interviews, I said forget it,” she said. “They went with young, techy guys.”
|
||||
</p>
|
||||
<p>
|
||||
Chaos only reentered her life through her daughter, Sarah. As an undergraduate at Yale in the 1980s, Sarah Gille sat in on a class about scientific programming. The case they studied? Lorenz’s discoveries on the LGP-30. Later, Sarah studied physical oceanography as a graduate student at MIT, joining the same overarching department as both Lorenz and Rothman, who had arrived a few years earlier. “One of my office mates in the general exam, the qualifying exam for doing research at MIT, was asked: How would you explain chaos theory to your mother?” she said. “I was like, whew, glad I didn’t get that question.”
|
||||
</p>
|
||||
<h2>
|
||||
<strong>The Changing Value of Computation</strong>
|
||||
</h2>
|
||||
<p>
|
||||
Today, chaos theory is part of the scientific repertoire. In a study published just last month, researchers concluded that no amount of improvement in data gathering or in the science of weather forecasting will allow meteorologists to produce useful forecasts that stretch more than 15 days out. (Lorenz had suggested a similar two-week cap to weather forecasts in the mid-1960s.)
|
||||
</p>
|
||||
<p>
|
||||
But the many retellings of chaos’s birth say little to nothing about how Hamilton and Ellen Gille wrote the specific programs that revealed the signatures of chaos. “This is an all-too-common story in the histories of science and technology,” wrote <a href="https://sts-program.mit.edu/people/sts-faculty/jennifer-s-light/" target="_blank">Jennifer Light</a>, the department head for MIT’s Science, Technology and Society program, in an email to <em>Quanta.</em> To an extent, we can chalk up that omission to the tendency of storytellers to focus on solitary geniuses. But it also stems from tensions that remain unresolved today.
|
||||
</p>
|
||||
<p>
|
||||
First, coders in general have seen their contributions to science minimized from the beginning. “It was seen as rote,” said <a href="http://mariehicks.net/" target="_blank">Mar Hicks</a>, a historian at the Illinois Institute of Technology. “The fact that it was associated with machines actually gave it less status, rather than more.” But beyond that, and contributing to it, many programmers in this era were women.
|
||||
</p>
|
||||
<p>
|
||||
In addition to Hamilton and the woman who coded in MIT’s nuclear engineering department, Ellen Gille recalls a woman on an LGP-30 doing meteorology next door to Lorenz’s group. Another woman followed Gille in the job of programming for Lorenz. <a href="https://www.aauw.org/research/solving-the-equation/" target="_blank">An analysis of official U.S. labor statistics</a> shows that in 1960, women held 27 percent of computing and math-related jobs.
|
||||
</p>
|
||||
<p>
|
||||
The percentage has been stuck there for a half-century. In the mid-1980s, the fraction of women pursuing bachelor’s degrees in programming even started to decline. Experts have argued over why. One idea holds that early personal computers were marketed preferentially to boys and men. Then when kids went to college, introductory classes <a href="https://www.npr.org/sections/money/2016/07/22/487069271/episode-576-when-women-stopped-coding" target="_blank">assumed a detailed knowledge of computers going in</a>, which alienated young women who didn’t grow up with a machine at home. Today, women programmers <a href="https://www.nytimes.com/2019/02/13/magazine/women-coding-computer-programming.html" target="_blank">describe</a> a self-perpetuating cycle where white and Asian male managers hire people who look like all the other programmers they know. Outright harassment also remains a problem.
|
||||
</p>
|
||||
<p>
|
||||
Hamilton and Gille, however, still speak of Lorenz’s humility and mentorship in glowing terms. Before later chroniclers left them out, Lorenz thanked them in the literature in the same way he thanked Saltzman, who provided the equations Lorenz used to find his attractor. This was common at the time. Gille recalls that in all her scientific programming work, only once did someone include her as a co-author after she contributed computational work to a paper; she said she was “stunned” because of how unusual that was.
|
||||
</p>
|
||||
<p>
|
||||
Since then, the standard for giving credit has shifted. “If you went up and down the floors of this building and told the story to my colleagues, every one of them would say that if this were going on today … they’d be a co-author!” Rothman said. “Automatically, they’d be a co-author.”
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Computation in science has become even more indispensable, of course. For recent breakthroughs like <a href="https://www.quantamagazine.org/what-the-sight-of-a-black-hole-means-to-a-black-hole-physicist-20190410/" target="_blank">the first image of a black hole</a>, the hard part was not figuring out which equations described the system, but how to leverage computers to understand the data.
|
||||
</p>
|
||||
<p>
|
||||
Today, many programmers leave science not because their role isn’t appreciated, but because coding is better compensated in industry, said <a href="https://astronomy.fas.harvard.edu/people/goodman-alyssa" target="_blank">Alyssa Goodman</a>, an astronomer at Harvard University and an expert in computing and data science. “In the 1960s, there was no such thing as a data scientist, there was no such thing as Netflix or Google or whoever, that was going to suck in these people and really, really value them,” she said.
|
||||
</p>
|
||||
<p>
|
||||
Still, for coder-scientists in academic systems that measure success by paper citations, things haven’t changed all that much. “If you are a software developer who may never write a paper, you may be essential,” Goodman said. “But you’re not going to be counted that way.”
|
||||
</p>
|
||||
<p>
|
||||
<span><i>This article was reprinted on </i><a href="https://www.wired.com/story/these-hidden-women-helped-invent-chaos-theory/" target="_blank"><i>Wired.com</i></a><i>.</i></span>
|
||||
</p>
|
||||
</div>
|
||||
</DIV></article>
|
1208
resources/tests/readability/quanta-1/source.html
Normal file
1208
resources/tests/readability/quanta-1/source.html
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,7 @@
|
|||
<article><div id="readability-page-1">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua.</p>
|
||||
<p>Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
</div></article>
|
19
resources/tests/readability/remove-aria-hidden/source.html
Normal file
19
resources/tests/readability/remove-aria-hidden/source.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Remove aria-hidden elements test</title>
|
||||
</head>
|
||||
<body>
|
||||
<article>
|
||||
<h1>Lorem</h1>
|
||||
<div>
|
||||
<p><span aria-hidden="true">**WRONG**</span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua.</p>
|
||||
<p>Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
</div>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<article><DIV id="readability-page-1">
|
||||
<div>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua.</p>
|
||||
|
||||
<p>Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
|
||||
|
||||
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<p>Tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
|
||||
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
|
||||
</div>
|
||||
</DIV></article>
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Replace font tags test</title>
|
||||
</head>
|
||||
<body>
|
||||
<article>
|
||||
<h1>Lorem</h1>
|
||||
<div>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua.</p>
|
||||
<p></p>
|
||||
<p>Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
<p></p>
|
||||
</div>
|
||||
<h2>Foo</h2>
|
||||
<div>
|
||||
<p>Tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
<p>
|
||||
</p>
|
||||
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
<p>
|
||||
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
24
resources/tests/readability/remove-script-tags/expected.html
Normal file
24
resources/tests/readability/remove-script-tags/expected.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<article><DIV id="readability-page-1">
|
||||
<div>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua.</p>
|
||||
<p>Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
|
||||
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div>
|
||||
<div>
|
||||
<p>Tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
|
||||
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur.
|
||||
|
||||
Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div>
|
||||
</DIV></article>
|
43
resources/tests/readability/remove-script-tags/source.html
Normal file
43
resources/tests/readability/remove-script-tags/source.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Remove script tags test</title>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript1.8">alert('wrong')</script>
|
||||
<article>
|
||||
<h1>Lorem</h1>
|
||||
<div>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua.</p>
|
||||
<p>Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
<script>
|
||||
alert('wrong')
|
||||
</script>
|
||||
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
alert('wrong')
|
||||
</script>
|
||||
<h2>Foo</h2>
|
||||
<div>
|
||||
<p>Tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat.</p>
|
||||
<script type="text/javascript1.8">alert('wrong')</script>
|
||||
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur.
|
||||
<script type="text/vbscript" language="vbscript">
|
||||
document.write("super wrong.")
|
||||
</script>
|
||||
Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<article><DIV id="readability-page-1">
|
||||
<br id="br1">
|
||||
<p id="first">Regarding item# 11111, under sufficiently extreme conditions, quarks may
|
||||
become deconfined and exist as free particles. In the course of asymptotic
|
||||
freedom, the strong interaction becomes weaker at higher temperatures.
|
||||
Eventually, color confinement would be lost and an extremely hot plasma
|
||||
of freely moving quarks and gluons would be formed. This theoretical phase
|
||||
of matter is called quark-gluon plasma.[81] The exact conditions needed
|
||||
to give rise to this state are unknown and have been the subject of a great
|
||||
deal of speculation and experimentation.</p>
|
||||
<p id="second">Regarding item# 22222, under sufficiently extreme conditions, quarks may
|
||||
become deconfined and exist as free particles. In the course of asymptotic
|
||||
freedom, the strong interaction becomes weaker at higher temperatures.
|
||||
Eventually, color confinement would be lost and an extremely hot plasma
|
||||
of freely moving quarks and gluons would be formed. This theoretical phase
|
||||
of matter is called quark-gluon plasma.[81] The exact conditions needed
|
||||
to give rise to this state are unknown and have been the subject of a great
|
||||
deal of speculation and experimentation.</p>
|
||||
<p id="third">Regarding item# 33333, under sufficiently extreme conditions, quarks may
|
||||
become deconfined and exist as free particles. In the course of asymptotic
|
||||
freedom, the strong interaction becomes weaker at higher temperatures.
|
||||
Eventually, color confinement would be lost and an extremely hot plasma
|
||||
of freely moving quarks and gluons would be formed. This theoretical phase
|
||||
of matter is called quark-gluon plasma.[81] The exact conditions needed
|
||||
to give rise to this state are unknown and have been the subject of a great
|
||||
deal of speculation and experimentation.</p>
|
||||
<br id="br2">
|
||||
</DIV></article>
|
|
@ -0,0 +1,34 @@
|
|||
<html>
|
||||
|
||||
<head></head>
|
||||
|
||||
<body>
|
||||
<br id="br1"/>
|
||||
<p id="first">Regarding item# 11111, under sufficiently extreme conditions, quarks may
|
||||
become deconfined and exist as free particles. In the course of asymptotic
|
||||
freedom, the strong interaction becomes weaker at higher temperatures.
|
||||
Eventually, color confinement would be lost and an extremely hot plasma
|
||||
of freely moving quarks and gluons would be formed. This theoretical phase
|
||||
of matter is called quark-gluon plasma.[81] The exact conditions needed
|
||||
to give rise to this state are unknown and have been the subject of a great
|
||||
deal of speculation and experimentation.</p>
|
||||
<p id="second">Regarding item# 22222, under sufficiently extreme conditions, quarks may
|
||||
become deconfined and exist as free particles. In the course of asymptotic
|
||||
freedom, the strong interaction becomes weaker at higher temperatures.
|
||||
Eventually, color confinement would be lost and an extremely hot plasma
|
||||
of freely moving quarks and gluons would be formed. This theoretical phase
|
||||
of matter is called quark-gluon plasma.[81] The exact conditions needed
|
||||
to give rise to this state are unknown and have been the subject of a great
|
||||
deal of speculation and experimentation.</p>
|
||||
<p id="third">Regarding item# 33333, under sufficiently extreme conditions, quarks may
|
||||
become deconfined and exist as free particles. In the course of asymptotic
|
||||
freedom, the strong interaction becomes weaker at higher temperatures.
|
||||
Eventually, color confinement would be lost and an extremely hot plasma
|
||||
of freely moving quarks and gluons would be formed. This theoretical phase
|
||||
of matter is called quark-gluon plasma.[81] The exact conditions needed
|
||||
to give rise to this state are unknown and have been the subject of a great
|
||||
deal of speculation and experimentation.</p>
|
||||
<br id="br2"/>
|
||||
</body>
|
||||
|
||||
</html>
|
28
resources/tests/readability/replace-font-tags/source.html
Normal file
28
resources/tests/readability/replace-font-tags/source.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Replace font tags test</title>
|
||||
</head>
|
||||
<body>
|
||||
<article>
|
||||
<h1>Lorem</h1>
|
||||
<div>
|
||||
<font face="Arial" size="2"><font face="Times" size="10">Lorem</font> ipsum dolor</font> sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. <font face="Arial" size="2">Duis</font> aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
</div>
|
||||
<h2>Foo</h2>
|
||||
<div>
|
||||
Tempor incididunt ut labore et <font face="Arial" size="2">dolore</font> magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. <font face="Arial" size="2">Excepteur sint occaecat</font> cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
</div>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
|
@ -397,6 +397,46 @@ async fn nytimes_5() {
|
|||
run_test("nytimes-5").await
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn pixnet() {
|
||||
run_test("pixnet").await
|
||||
}
|
||||
|
||||
// #[tokio::test]
|
||||
// async fn qq() {
|
||||
// run_test("qq").await
|
||||
// }
|
||||
|
||||
#[tokio::test]
|
||||
async fn quanta_1() {
|
||||
run_test("quanta-1").await
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn remove_aria_hidden() {
|
||||
run_test("remove-aria-hidden").await
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn remove_extra_paragraphs() {
|
||||
run_test("remove-extra-paragraphs").await
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn reordering_paragraphs() {
|
||||
run_test("reordering-paragraphs").await
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn remove_script_tags() {
|
||||
run_test("remove-script-tags").await
|
||||
}
|
||||
|
||||
// #[tokio::test]
|
||||
// async fn replace_font_tags() {
|
||||
// run_test("replace-font-tags").await
|
||||
// }
|
||||
|
||||
#[tokio::test]
|
||||
async fn webmd_1() {
|
||||
run_test("webmd-1").await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue