Search found 688 matches

by Daniel Wee
Mon 07 May 07 2018 1:02 am
Forum: Other Stuff
Topic: Using Dash
Replies: 4
Views: 115

Re: Using Dash

by Daniel Wee
Sun 06 May 06 2018 1:35 am
Forum: Other Stuff
Topic: Using Dash
Replies: 4
Views: 115

Re: Using Dash

Resolution involved:- Setting up mod_wsgi to work:- see files:- See Proxy lines for port 80 and 443 (SSL) /etc/apache2/sites-enabled/default-ssl.conf See how to get apache2 to serve up dash on given port 8050 /etc/apache2/sites-enabled/attendance.conf You'll need to enable this with:- sudo a2ensite ...
by Daniel Wee
Sun 06 May 06 2018 12:58 am
Forum: Other Stuff
Topic: Using Dash
Replies: 4
Views: 115

Re: Using Dash

To configure apache2 to redirect an alias to a different port, use proxy functions:- https://stackoverflow.com/questions/34557137/proxypass-a-url-to-different-port-internally https://www.digitalocean.com/community/tutorials/how-to-use-apache-as-a-reverse-proxy-with-mod_proxy-on-ubuntu-16-04 This som...
by Daniel Wee
Sat 05 May 05 2018 10:48 pm
Forum: Other Stuff
Topic: Setting virtual host in apache2
Replies: 0
Views: 23

Setting virtual host in apache2

A conf file need to be created and placed in:-

/etc/apache2/sites-available

Supposing the file is dash.conf, it would be:-

/etc/apache2/sites-available/dash.conf

You would enable the virtual host defined in dash.conf like this:-

sudo a2ensite dash
by Daniel Wee
Fri 04 May 04 2018 12:03 am
Forum: Projects
Topic: Mapbox utilization
Replies: 2
Views: 70

Re: Mapbox utilization

For multiple markers in an array, see:-

https://plot.ly/python/scattermapbox/#new-to-plotly
by Daniel Wee
Fri 04 May 04 2018 12:01 am
Forum: Projects
Topic: Mapbox utilization
Replies: 2
Views: 70

Re: Mapbox utilization

Minimal code using offline plotly here. Outputs a map with a marker to a named html file which can then be opened up in a browser. For more info on offline mode, see:- https://www.reddit.com/r/IPython/comments/3tibc8/tip_on_how_to_run_plotly_examples_in_offline_mode/ import plotly.offline as py from...
by Daniel Wee
Fri 04 May 04 2018 12:00 am
Forum: Projects
Topic: Mapbox utilization
Replies: 2
Views: 70

Mapbox utilization

For offline calculation of tiles required, use:-

https://www.mapbox.com/help/offline-estimator/

Bounding box of:
SW 1.21766 103.60073
NE 1.47212 104.03532

Min zoom: 10
Max zoom: 16

Tiles required: 5300
by Daniel Wee
Tue 01 May 01 2018 2:45 pm
Forum: Other Stuff
Topic: Setting up Ubuntu 18.04 LTS
Replies: 0
Views: 32

Setting up Ubuntu 18.04 LTS

1. LVM causes some unnecessary complexities - avoid if not needed

2. Fractional scaling with:

xrandr --output DP-1 --scale 0.75x0.75