This guide is for RxJava 1 and Glide v3 (3.8.0).
Have a list of URLs to GIFs, how to download them all in separated threads and proceed when all GIFs are downloaded?
private void download(final List<String> urlList) {
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php5.6 | |
you can install more php5.6 module | |
sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-intl php5.6-intl php5.6-mbstring php-apcu php-uuid php5.6-cgi php5.6-cli php5.6-gd php5.6-ldap php5.6-sqlite3 php-uploadprogress |
ARCHITECTURE COMPONENTS - I'M NOT A PURIST BUT ... | |
http://hannesdorfmann.com/android/arch-components-purist | |
DIFFERENT LIVEDATA AND OBSERABLE | |
LiveData seems to be a very simplified version of RxJava’s Observable. LiveData is lifecycle aware so that we as developer don’t have to unsubscribe explicitly as we have to do with RxJava’s Observable. Both implement the Observer pattern. | |
LiveData doesn’t provide all this fancy functional programming operators as RxJava does although architecture components provides some functional concepts via Transformations helper class such as Transformations.map() and Transformations.switchMap(). | |
https://developer.android.com/topic/libraries/architecture/livedata.html | |
Unlike a regular observable, LiveData respects the lifecycle of app components, such that the Observer can specify a Lifecycle in which it should observe. | |
LiveData considers an Observer to be in an active state if the Observer’s Lifecycle is in STARTED or RESUMED state. |
This guide is for RxJava 1 and Glide v3 (3.8.0).
Have a list of URLs to GIFs, how to download them all in separated threads and proceed when all GIFs are downloaded?
private void download(final List<String> urlList) {
DrawableRequestBuilder drawableRequestBuilder = Glide.with(This | |
.load(url) | |
.fitCenter() | |
.animate(android.R.anim.fade_in); | |
if (mMediaFragmentListener.getLocalVideoUri() != null) { | |
MediaMetadataRetriever retriever = new MediaMetadataRetriever(); | |
Context context = getContext(); | |
retriever.setDataSource(context, mMediaFragmentListener.getLocalVideoUri()); | |
Bitmap frame = retriever.getFrameAtTime(); |
<select name="country"> | |
<option>Afghanistan</option> | |
<option>Albania</option> | |
<option>Algeria</option> | |
<option>American Samoa</option> | |
<option>Andorra</option> | |
<option>Angola</option> | |
<option>Anguilla</option> | |
<option>Antarctica</option> | |
<option>Antigua and Barbuda</option> |
return array( | |
'router' => array( | |
'routes' => array( | |
'forecaster' => array( | |
'type' => 'Literal', | |
'options' => array( | |
'route' => '/forecaster', | |
'defaults' => array( | |
'__NAMESPACE__' => 'Forecaster\Controller', | |
'controller' => 'Forecaster', |
Download
http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
# To install virtual environment in the system | |
py -m pip install --user virtualenv | |
# To check the current version of the virtual environment | |
py -m pip --version | |
# creating the virtual environment | |
virtualenv -p python3 virtual_environment_name | |
# activating the virtual environment |
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test
Taken from: http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/
[Django][1] is an efficient, versatile and dynamically evolving web application development framework. When Django initially gained popularity, the recommended setup for running Django applications was based around Apache with mod_wsgi. The art of running Django advanced and these days the recommended configuration is more efficient and resilient, but also more complex and includes such tools as: Nginx, Gunicorn, virtualenv, supervisord and PostgreSQL.
In this text I will explain how to combine all of these components into a Django server running on Linux.