Wednesday, November 12, 2014

Fixing Wordpress post permalinks on Ubuntu localhost

Installing wordpress on a fresh local install on my machine, post permalinks with post name does not work. To enable that :

1. Enable mod_rewrite for apache

cd /etc/apache2/mods-enabled/
sudo ln -s ../mods-available/rewrite.load

2. Enable AllowOverride for apache

sudo vi /etc/apache2/apache2.conf 
        Options Indexes FollowSymLinks
        AllowOverride All


Saturday, November 8, 2014

Loading big data to PostGIS with shp2pgsql

From http://doublebyteblog.wordpress.com/2014/08/06/importing-large-spatial-dataset-into-postgis/

Looks like the -D switch is wital :
shp2pgsql -D -s 4326 data.shp import_shp2pgsql | psql

Friday, November 7, 2014

Fix Adobe Flash Player Issue In Chromium In Ubuntu 14.04

from http://itsfoss.com/fix-flash-player-issue-chromium-in-ubuntu-14-04/ :

sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree --install