python template engine

Jinja2 is a full featured template engine for Python. It has full unicode support, an optional integrated sandboxed execution environment, widely used and BSD licensed.

Python template engine

Your android phone as car dvr

Acting as a car blackbox, dash cam or auto DVR, DailyRoads Voyager continuously records videos and captures photos during your journeys. The app automatically records everything, but only important events are retained for future reference or as evidence. You get to choose what to keep, simply by touching the screen, even while you drive.

Key features:
– Continuous video recording, with user-defined length and video quality; sound can be included
– User-defined storage space on the SD card with cyclic recording; i.e. the card never fills up
– One-touch video retention allows you to keep video files for interesting road events during the whole journey
– Auto retain video upon sudden shock (e.g. accident); configurable g-force sensitivity
– Automatically capture photos at user-defined intervals and resolutions; great for time-lapse photography
– Background video/photo capture, with optional buttons over other applications
– Auto start and shutdown based on car dock detection and related options
– Videos/photos are timestamped & geotagged
– Automatically determine street address of retained videos/photos
– Display videos/photos location on a map
– Display speed, elevation, timestamp and GPS coordinates on videos/photos
– Option to change speed units (km/h, mph) and date format
– GPS can be disabled to reduce power consumption
– Brightness adjustment option allows less distraction when driving at night
– Built-in file manager, video/photo browser
– Add title/description/bookmark to files
– Upload files to DailyRoads.com
– App2SD
– Languages: English, Chinese, Russian, Korean and Spanish

This is a free application without ads. Enjoy and have a safe journey!

Working combinations of video settings on various phone models:
http://www.dailyroads.com/voyager/stats.php

Reviews: http://www.dailyroads.com/voyager/reviews

Keywords: vehicle blackbox, dashcam, auto DVR, road surveillance, traffic recorder, travel recorder, video event recorder, VER, VEDR, photo, time lapse photography, accident, crash, traffic accident, road incident, road trip, g-force, accelerometer, GPS, car mount

 

from https://play.google.com/store/apps/details?id=com.dailyroads.v

Setup apache2 with ssl on ubuntu

First of all we should install apache web server and add mod_ssl
sudo apt-get install apache2
sudo a2enmod ssl

Create folder for storing ssl certificates
sudo mkdir /etc/apache2/ssl
Now we generate self signed certificate for one year
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/server.key -out /etc/apache2/ssl/server.crt
This command will ask you few questions. The most important question is “Common Name” – its FDQN server name (lets imagine that FDQN of your server is mynewsslserver.com)
Now lets create config file for new virtual host
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
sudo vi /etc/apache2/sites-available/ssl
Add few lines

ServerName mynewsslserver.com:443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key

Now we should activate new site
a2enmod ssl
After all lets restart Apache server
service apache2 restart

Thats all!