寻宝游戏设定_第1集的答案(寻宝游戏)
尋寶游戲設定
Welcome back, scavengers!
歡迎回來,拾荒者!
If you missed it, this week’s challenge deals with finding computer-readable public data resources. Before getting to the answers, though, let’s talk a little about technique.
如果您錯過了它,那么本周的挑戰就是尋找計算機可讀的公共數據資源 。 在獲得答案之前,讓我們先討論一下技術。
查找公共數據 (Finding public data)
By law (in the US), much of the data produced by government agencies must be made available publicly. As you might expect, however, this is often the last thing an acronym’d agency wants to think about. Thus, even when data is made available on the web, it’s often only provided in formats that are difficult to parse on websites that are difficult to find.
根據法律(在美國),政府機構產生的許多數據必須公開提供。 如您所料,這通常是縮略語代理商想要考慮的最后一件事。 因此,即使在網絡上提供數據時,通常也只能以難以解析的格式在難以找到的網站上提供數據。
Google does a pretty good job of penetrating this maze of government websites. Most of those who commented on the original question were able to find at least a few sources using Google. For me, at least, a good deal of poking around and trying searches with different keywords was required.
Google在滲透這種迷宮般的政府網站方面做得很好。 對原始問題發表評論的大多數人至少可以使用Google找到一些消息來源。 至少對我來說,需要反復瀏覽并嘗試使用不同的關鍵字進行搜索。
Once at the right place, most people had no trouble finding data in a form at least nominally parseable. That’s a good sign; in this age of Microsoft Office, I often have to fight IT departments to get access to data in a format suitable for parsing into a database. I glad to see that the people responding to my question have a good grasp of what constitutes a friendly format.
一旦到了正確的位置,大多數人就可以毫無疑問地找到至少名義上可解析的形式的數據。 這是一個好兆頭。 在Microsoft Office的這個時代,我經常不得不與IT部門進行斗爭,以便以適合解析為數據庫的格式訪問數據。 我很高興看到回答我問題的人們對什么構成友好格式很了解。
A few readers had some nice tips for finding government data:
一些讀者對于查找政府數據有一些不錯的提示:
malikyte pointed out out that “advanced filters can help quite a bit when you know what form of information youa??re looking for, especially if a government organization is most likely involved. With [G]oogle, for instance, you can specify in the search terms: site:.gov “sec filings” or site:.org “sec filings” — limiting your search results goes a long way in removing unimportant data.” I hadn’t realized that Google’s site: operator could be used on TLDs; thanks!
malikyte 指出 ,“當您知道要查找的信息形式時,尤其是在最有可能涉及政府組織的情況下,高級篩選器可以提供很大幫助。 例如,使用[G] oogle,您可以在搜索詞中指定: site:.gov“ sec檔案”或site:.org“ sec檔案” -限制搜索結果在刪除不重要的數據上有很長的路要走。 我還沒有意識到Google的site:運算符可以在TLD上使用; 謝謝!
WindUpDoll easily found demographics for Wisconsin through her girlfriend who works for the city. I don’t in any way consider this cheating; nearly all of the cool work that we do at work is mad possible by an inside connection. If you’re in the business of dealing with public data, friends on the inside are key.
WindUpDoll通過在城市工作的女友輕松找到了威斯康星州的人口統計信息 。 我絕不考慮這種作弊。 內部工作幾乎可以使我們在工作中所做的所有出色工作變得瘋狂。 如果您要處理公共數據,那么內部的朋友就是關鍵。
dmbfansim mentioned the redundantly-named-yet-useful FirstGov.gov, “The U.S. Government’s Official Web Portal”. More specifically, the reference center is an invaluable resource.
dmbfansim 提到了冗余命名的但仍然有用的FirstGov.gov ,即“美國政府的官方Web門戶”。 更具體地說, 參考中心是寶貴的資源。
Finally, a wonderful clearinghouse for government data is FedStats.gov; I found the questions for this quiz starting at that site.
最后, FedStats.gov是一個很棒的政府數據交換所 ; 我從該站點開始找到有關此測驗的問題。
答案 (The answers)
Right, enough dallying; here are the answers. In some cases there were multiple sources found (by readers or by me); I’ve only provided one below:
是的,足夠的團結; 這是答案。 在某些情況下,發現了多種來源(讀者或我); 我只提供了以下內容:
Nutritional content of food from the USDA.
美國農業部食品的營養成分 。
(Links to) population demographics of every major city in the US, courtesy of the US Census Bureau.
(鏈接) 美國每個主要城市的人口統計數據 ,由美國人口普查局提供。
The latest SEC filings (in RSS, no less) straight from the horse’s mouth.
直接從馬口中得知SEC的最新文件 (不少于RSS)。
Historical gas prices, from the Energy Information Administration (which I had never heard of until writing this quiz).
能源信息管理局的歷史天然氣價格 (在撰寫此測驗之前我從未聽說過)。
Juvenile arrest rates from the Office of Juvenile Justice and Delinquency Prevention (part of the Department of Justice).
少年司法和預防犯罪辦公室(司法部的一部分)的少年逮捕率 。
Was it good for you, too?
對你也有好處嗎?
下次… (Next time…)
Come Tuesday, we’ll tackle a tool that’s perhaps the most powerful text-processing engine known to man: regular expressions. Now you have two problems.
星期二到來,我們將解決一種工具,它也許是人類已知的最強大的文本處理引擎:正則表達式。 現在您有兩個問題。
See you then.
回頭見。
翻譯自: https://www.sitepoint.com/episode-1-answers/
尋寶游戲設定
總結
以上是生活随笔為你收集整理的寻宝游戏设定_第1集的答案(寻宝游戏)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 犹太人很会赚钱?一老板用犹太人的思维做生
- 下一篇: 如何将大硬盘对拷到小硬盘