オープンデータとプログラミング

14:00 .COM トラック|02:00pm .COM Track

オープンデータ関連のニュースです。

https://opendata.ch/com/

日本語

TranslateApiException: Cannot find an active Azure Market Place Translator Subscription associated with the request credentials. : ID=1250.V2_Json.Translate.B315755
続きを読む…

English

The afternoon program of the Opendata.ch/2016 Conference is composed of three parallel tracks, each being dedicated to a specific subject and containing 4 workshops. Here you go with the detailed information about the .
Read more…

ヘルシンキのデータ ジャーナリズム、透明性とスクープ|Helsinki’s Data Journalism, Transparency and Scoops

オープンデータ関連のニュースです。

http://www.huffingtonpost.com/magda-abufadil/helsinkis-data-journalism_b_10304804.html

日本語

「我々 は、ボットでこするの多くを行う」毎日新聞 Helsingin Sanomat から Tuomas Peltomaki は言った。「フィンランドのメディアの家はすべての選挙で投票の市民を支援するソフトウェアがある」 彼は、政治家が政策課題にフォームに記入、国民は同じとデータは投票の決定を分析する使用ことができます説明しました。 「私は可視化とデータ セットを簡単にインタラクティブなコンテンツを通して物語を行う方法把握」も、コードがデータ ジャーナリズムが生成する高価ななって是認する Peltomaki は言った。 1 つのデータも採掘して使用できる、法的そして不法に、ハック、ずさんな歩道やその他の手段を通じて参加者を思い出しました。
続きを読む…

English

“We do a lot of scraping with bots,” said Tuomas Peltomaki from the daily newspaper Helsingin Sanomat. “All media houses in Finland have software to help citizens vote in the elections.” He explained that politicians fill forms on policy issues, the public does the same, and the data can be used to analyze decisions on voting. “I figure out ways to do stories through visualizations and interactive content to simplify data sets,” said Peltomaki, who also codes, but admits that data journalism is getting expensive to produce. One’s own data can also be mined and used, legally and illegally, through hacks, sloppy trails, and other means, participants were reminded.
Read more…

pipでPIL(画像ライブラリ)のインストールがうまくいかない場合の解決方法(メモ)

python

pipでPIL(画像ライブラリ)をインストールしようとしてうまくいかなかった場合の対処方法に関するメモです。

PILは古い(2009年開発終了)のでPillowの使用をお勧めします。PIL向けのソースはほぼそのままで動くと思います。
環境:
python 2.7.11
CentOS release 6.7 (Final)

いろいろネットの情報を参考にしてpipを実行しましたがエラーがでてうまくいきません。

$pip install PIL --allow-external PIL --allow-unverified PIL

エラー内容は以下のとおりです。

DEPRECATION: --allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Collecting PIL
  Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL

このような場合は、以下のサイトからソースをダウンロードしてコンパイルします。

最新版をDLします。

Python Imaging Library 1.1.7 Source Kit (all platforms) (November 15, 2009)

適当な場所に解凍したら、ディレクトリに降りてsetup.pyを実行。

$python setup.py install

途中、freetypeのヘッダまわりでエラーになる場合があります。

_imagingft.c:73:31: error: freetype/fterrors.h: そのようなファイルやディレクトリはありません
_imagingft.c:78: error: expected expression before ‘static’
_imagingft.c: In function ‘getfont’:
_imagingft.c:132: error: ‘library’ undeclared (first use in this function)
_imagingft.c:132: error: (Each undeclared identifier is reported only once
_imagingft.c:132: error: for each function it appears in.)
_imagingft.c:144: 警告: passing argument 1 of ‘FT_New_Face’ from incompatible pointer type

この解決方法は、シンボリックリンクを作成してあげればOKです。
※freetypeのインストール場所は環境によって異なる場合があるかもしれませんのでよく確認してください

ln -s /usr/include/freetype2/freetype /usr/local/include/freetype

シンボリックリンクを作成したら再度、setup.pyを実行。

$python setup.py install

以上で完了です。

高齢者のための オープン データ|Open Data for the elderly

オープンデータ関連のニュースです。

http://www.europeandataportal.eu/es/content/open-data-elderly

日本語

TranslateApiException: Cannot find an active Azure Market Place Translator Subscription associated with the request credentials. : ID=0642.V2_Json.Translate.AD714B1
続きを読む…

English

While it is no longer uncommon to have your grandparents on Facebook, talk to them on Skype or send them videos on Snapchat, the number of services targeted at the elderly is still very limited. Considering their growing technical capabilities, this is a missed opportunity. To overcome this, the Institute for Information Management Bremen in Germany has started the project ‘Mobile age’ to develop applications fitted to the needs of the elderly.
Read more…

マーケティング マネージャー (複数の役割) – (米国) Req MARKE01021|Marketing Manager (Multiple Roles) – (US) Req MARKE01021

オープンデータ関連のニュースです。

http://jobs.chiefmarketer.com/jobseeker/job/28839479/

日本語

TranslateApiException: Cannot find an active Azure Market Place Translator Subscription associated with the request credentials. : ID=1146.V2_Json.Translate.E5C2001
続きを読む…

English

PLOS is an organization with a commitment to transform scientific research communication with open data, open access, open thinking and an open work environment. If you join PLOS, you will be a member of a team that publishes and makes important science freely available to everyone, under a Creative Commons license. We are looking for a talented and creative individual to join our growing team in the role of Marketing Manager for PLOS’ high quality Open Access journals. This position will be based in our San Francisco office.
Read more…

ハッカーより良いビジネス アプリケーションを構築するウィルミントンの団結します。|Hackers unite in Wilmington to build better business apps

オープンデータ関連のニュースです。

http://www.delawareonline.com/story/money/business/2016/06/04/hackers-unite-wilmington-build-better-business-apps/85411244/

日本語

TranslateApiException: Cannot find an active Azure Market Place Translator Subscription associated with the request credentials. : ID=0151.V2_Json.Translate.ADBCAC5
続きを読む…

English

Hackers might soon help Delawareans find their favorite food trucks. Or they could make it easier for entrepreneurs to access startup resources, find an ideal location and land government contracts. About 50 computer programmers set out to do all that and more Saturday during the inaugural DataWorks “hackathon” in Wilmington. “Our goal is to come up with some tools that could be really beneficial to local businesses and their customers,” said Ryan Harrington, who helped organize the event for host Open Data Delaware. But aren’t hackers those guys who hurt businesses by breaking into their computer systems to steal credit card numbers and other personal data? Yes and no, the 26-year-old Wilmington resident said.
Read more…

‘ 人々 は、スコットランドの土地を所有して知る権利を持っている」|’The people have the right to know who owns land in Scotland’

オープンデータ関連のニュースです。

http://www.heraldscotland.com/opinion/14537087.___The_people_have_the_right_to_know_who_owns_land_in_Scotland__39_/

日本語

サンデー · ヘラルドで今日の啓示は、スケールを強調表示し、スコットランドの土地の租税回避地の到達します。高地で大規模な狩猟団地にグラスゴーでアパートからの未知の人がパナマの企業の企業のベールの後ろに隠れているし、スコットランドの公衆がスコットランドの所有者に関する情報が拒否されます。 しかし、なぜこの情報啓示の最初の場所でですか。この新聞が公共のレコードを取得するお金の相当な合計を支払うならないとするはなぜですか。[サンデー · ヘラルドがならなかった付属の調査で使用されるデータにアクセスするための手数料を支払う] 昨年 10 月、土地レジストリのイングランドとウェールズですべて海外所有の土地および特性のデータが掲載されました。
続きを読む…

English

TODAY’S revelations in the Sunday Herald highlight the scale and reach of secrecy jurisdictions in Scottish landownership. From flats in Glasgow to extensive hunting estates in the Highlands, unknown persons are hiding behind the corporate veil of Panamanian companies and the Scottish public are being denied information about who owns Scotland. But why should this information be a revelation in the first place? Why should this newspaper have to pay a substantial sum of money to obtain public records? [The Sunday Herald had to pay a fee to access the data used in the accompanying investigation] Last October, data for all overseas-owned land and property was published by the Land Registry of England and Wales.
Read more…

Fitbit Alta Fitness Tracker: 購入前に必ずチェックしておきたい海外ユーザの評判

Fitbit Alta Fitness Trackerは、米国サンフランシスコに本社を置くFitbit社が開発したフィットネストラッカー(活動量計)です。

心拍数を利用して運動量のレベルを上げたい、毎日少しずつ歩数が増えていく様子がみたいなど機能的な部分も大事ですが、
常に身につけるものなので、できればオシャレなものを選びたいものですね。

そのような方にFitbit社のフィットネストラッカー(活動量計)はちょうどよい選択肢になるのではないでしょうか。

それでも購入したのはよいけど、「故障ばかりする」、「精度がいま一つ」といったことでも困りますよね。
そのようなことが無いように、購入前にはきちんと評判をチェックしておきたいものです。

それでは海外のユーザ評価を見ておきましょう。

コメント
www.amazon.com
Fitbit Altaはスタイリッシュでよくできた製品ですが、精度が高くないのが問題です。

歩数を正確に数えるトラッカーが欲しいならば、他のトラッカーを選んだ方がよいです。

私は、Fitbit CHARGE(Fitbit社のワイヤレス活動量計+睡眠計リストバンド)の代わりとして、ALTAを購入しました。
CHARGEの問題は、プラスチック「スキン」がトラッカー本体と分離し始め、CHARGEが壊れてしまったあと、
Fitbit社から25%の割引購入の提案があったので、より長く使えることを願って最新のALTAを試そうと思ったわけです。

ALTAの問題は一層「運動」トラッカーよりに設計されていることが説明されていないということです。
それはFitbitが一度に10分以上続いているセッションでされないどんなステップでも基本的に捨てられてしまうのです。

そして、もう一つの問題があります。

ある日、私は腕を振ってトレッドミルの上を歩きました。
このとき、正確さを比較するときのベースラインを得ることができました。
ALTAは、歩数のカウントを開始するときに非常に敏感で、およそ10%、過度にカウントする傾向があります。
私は近所を散歩するときにこれを確かめました(手で私の歩数を数えました)。

GOOD!

・スタイルがよく、ソリッドな作り

BAD!

– 不正確な歩数計測の精度
– Bluetoothのお知らせ通知が 短時間で表示が消えてしまい、ほとんど使い物にならない

 

【関連製品】Fitbit CHARGE

 

www.amazon.com

バッテリーの持ちは素晴らしい。充電なしで1週間は持つ。

あわせて読んでおきたい記事:
自分でできるGarmin vivofit2の電池交換

 

アマゾンでの購入はこちら

楽天での購入はこちら

Py2exeでエラー:ImportError: cannot import name RAND_egd

python

Pythonを2.7.10にアップデートしたら、py2exeでパッケージングしたEXEで以下のエラー。対処方法のメモを残しておく。

Traceback (most recent call last):
  File "price_check.py", line 13, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "openpyxl\__init__.pyo", line 26, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "openpyxl\workbook\__init__.pyo", line 5, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "openpyxl\workbook\workbook.pyo", line 13, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "openpyxl\writer\write_only.pyo", line 17, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "openpyxl\writer\excel.pyo", line 30, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "openpyxl\packaging\manifest.pyo", line 7, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "mimetypes.pyo", line 29, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "urllib.pyo", line 26, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "socket.pyo", line 68, in <module>
ImportError: cannot import name RAND_egd

py2exeはとてもありがたいのだが、この手のエラーが多いのが困る。

暫定的な対応だがsocket.pyRAND_egdをimportしているところをコメントアウトしたらエラーが解消された。

    # we need to import the same constants we used to...
    from _ssl import SSLError as sslerror
    from _ssl import \
         RAND_add, \
         RAND_status, \
         SSL_ERROR_ZERO_RETURN, \
         SSL_ERROR_WANT_READ, \
         SSL_ERROR_WANT_WRITE, \
         SSL_ERROR_WANT_X509_LOOKUP, \
         SSL_ERROR_SYSCALL, \
         SSL_ERROR_SSL, \
         SSL_ERROR_WANT_CONNECT, \
         SSL_ERROR_EOF, \
         SSL_ERROR_INVALID_ERROR_CODE

''' ↓★コメントアウトする
   try:
        from _ssl import RAND_egd
    except ImportError:
        # LibreSSL does not provide RAND_egd
        pass
'''

データを使用して、都市の水システムを計画するには|Using Data to Plan Urban Water Systems

オープンデータ関連のニュースです。

http://www.govtech.com/data/Using-Data-to-Plan-Urban-Water-Systems.html

日本語

この話は、元データ スマート市ソリューションによって出版されました。 都市は、そのインフラストラクチャ システムの持続可能性に関する環境、社会的・経済的課題の数を直面しています。ステーク ホルダー別の都市は異なる情報源を参照し、ビューの異なる点があると、これらの課題に対するソリューションの成功を識別することは困難です。このようなニーズに対応し、持続可能なインフラのためのハーバード大学の Zofnass プログラムは、水インフラ問題の共有対話を開始する MA、シティ ・ オブ ・ チェルシーを有効にする Zofnass 情報ツールを構築しました。
続きを読む…

English

This story was originally published by Data-Smart City Solutions. Cities are facing a number of environmental, social, and economic challenges regarding the sustainability of their infrastructure systems. When different city stakeholders refer to different sources of information and have different points of view, it is difficult to identify successful solutions to these challenges. Responding to this need, Harvard’s Zofnass Program for Sustainable Infrastructure built the Zofnass Information Tool to enable the city of Chelsea, MA to start a shared dialogue on water infrastructure issues.
Read more…