Posts

Issues with Python pandas: read_html and python3-lxml installation -

i'm trying run following code, no avail. knowledge, there aren't syntax errors. import quandl import pandas pd fifty_states =pd.read_html('https://simple.wikipedia.org/wiki/list_of_u.s._states') print(fifty_states) i'm getting following error when run code: traceback (most recent call last): file "c:/users/dave/documents/python files/helloworld.py", line 15, in fiddy_states = pd.read_html(' http://simple.wikipedia.org/wiki/list_of_u.s._states ') file "c:\python35\lib\site-packages\pandas\io\html.py", line 874, in read_html parse_dates, tupleize_cols, thousands, attrs, encoding) file "c:\python35\lib\site-packages\pandas\io\html.py", line 726, in _parse parser = _parser_dispatch(flav) file "c:\python35\lib\site-packages\pandas\io\html.py", line 685, in _parser_dispatch raise importerror("lxml not found, please install it") importerror: lxml n...

reactjs - Redux use token in every API request -

i trying develop app using react native, redux , redux saga. i have following login flow: login form login attempt action login saga api call login reducer stores auth token i have multiple containers , components each execute actions in turn have sagas doing api calls. correct way pass token store api calling method while keeping code clean , reusable. you can create api saga(s) process api actions other app sagas. use select effect here token store , pass api call . keep api call separated saga more abstraction , dry principle. there several options call saga: direct yield* or throwing redux action.

javascript - Average values based on date from json to array of arrays -

i hesitate post i've made no significant progress. should step away day. attempting average values date use in highstock charts. data in form of json. issue arises when have 2 sets of data on same day, need average these values based on date. on given day there may 0,1, or 2 values. days no values need null rather 0 there highstock show gap. have been trying work on js solution problem. conceptually seems easy; group date, sum , divide length. have not made progress. here fiddle without blunders. assistance or nudge in right direction appreciated. { "nfdrs": { "row": [{ "@num": "141", "sta_id": "350920", "sta_nm": "hehe 1", "latitude": "44.9559", "longitude": "-121.4991", "nfdr_dt": "08\/10\/2016", "nfdr_tm": "13", "nfdr_type": "o...

Turning off ANSI colours for Laravel artisan command -

when run php artisan commands puts trailing characters[32m], [39m] , numbers. how gonna fix ? a:\xampp\htdocs\5.2>php artisan --version [32mlaravel framework[39m version [33m5.2.41[39m those ansi colours - attempt make nicer, easier read. if terminal doesn't support ansi, can turn them off passing command-line parameter --no-ansi : php artisan --version --no-ansi

mysql server keyring Plugin installation -

i have mysql server installed on linux ubuntu , trying install keyring plugin. have edited my.cnf file located @ /etc. file intially empty added below content it [mysqld] early-plugin-load=keyring_file.so after doing server restart , ran below query in workbench , 0 results select plugin_name, plugin_status information_schema.plugins plugin_name 'keyring%'; i trying follow tutorial https://dev.mysql.com/doc/refman/5.7/en/keyring-installation.html this resolved having value in file /etc/mysql/my.cnf

rest - I am working with a SOAP based web service which has been implemented in a RESTful way. What does this exactly mean? -

from know, web service working using soap. is, has envelope, header, body, etc. however, keep hearing particular soap service has been implemented in restful way. interesting thing noticed: when load wsdl in soap ui, have creating "new rest project." goes against entire understanding of soap , rest. can please shed light on this?

android - alignParentBottom appears Offscreen in Fragment with Scroll View -

for wanting have adview in app comprised of fragment layouts, hope below helps you! basically, trying place adview inside layout xml each fragment. caused adview either pushed off screen or not play nice relative layout commands (ex. alignparentbottom). the solution move adview main activity layout outside of the coordinator layout used fragments. wrapped coordinator layout , adview in relative layout. this allowed me control adview , present on each fragment pinned bottom of screen. i have found when change background of scrollview, paints on adview. must place adview below scrollview in code. way, drawn after scrollview , therefore on top. here edited code: <?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="m...