Guionista y locutor: Manuel Ignacio López Quintero.
Fecha de publicación: diciembre de 2017.
Guion:
– Animar a instalar una distribución GNU/Linux en 2018.
– PureOS y Purism.
Aquí os dejo un código mío de ejemplo para empezar a aprender a usar variables de tipo básico en JavaScript.
Es recomendable copiar el código y ejecutarlo en un intérprete de JavaScript y, a continuación, realizar los cambios que consideremos oportunos para comprender el funcionamiento.
'use strict' // This is a comment /*
This is a comment
on multiple lines
*/ // VARIABLES
//
// A variable is a symbol that represents a quantity that may vary.
//
// $identifier = value; var age = 25 // The value 25 is assigned to variable age // BASIC DATA TYPES
var temperature = -3.82 // Number
var name = 'Nacho López' // String
var has_car = true // Boolean (only two values: true or false) // ARITHMETIC OPERATIONS WITH NUMBERS
var x = 5
var y = 2 var z = x + y // Addition. Result: 7.
z = x - y // Subtraction. Result: 3.
z = x * y // Multiplication. Result: 10.
z = x / y // Division. Result: 2.5.
z = x % y // Modulo (remainder of the integer division). Result: 1. z++ // Increase the value of z by 1. Result: 2.
z-- // Decrease the value of z by 1. Result: 1. z = 50 - x * 6 / -0.5 //
z = (50 - x) * 6 / -0.5 // The order of operations is as in mathematics
z = (50 - x * 6) / -0.5 // z = 2 * z + 3 // Remember: the symbol = assigns a value to the variable // BASIC OPERATIONS WITH STRINGS
var a = 'GNU/'
var b = 'Linux'
var c = a + b // Concatenation Result: 'GNU/Linux'.
c = a.repeat(3) // Repetition Result: 'GNU/GNU/GNU/'. // PRINT VARIABLES ON CONSOLE
console.log('Hello, world!') // Prints on console: Hello, world!
console.log(x) // Prints the variable x // You can print on console strings and variables
console.log('I have bought', x, 'oranges and', y, 'lemons.') // DATA TYPE CONVERSION
var height = '95.4'
console.log(typeof(height)) // Prints the current data type
height = Number(height) // Convert a string to number
console.log(typeof(height)) var altitude = -544.432
console.log(typeof(altitude))
altitude = String(altitude) // Convert a number to string
console.log(typeof(altitude))
Aquí os dejo un código mío de ejemplo para empezar a aprender a usar variables de tipo básico en Python.
Es recomendable copiar el código y ejecutarlo en un intérprete de Python y, a continuación, realizar los cambios que consideremos oportunos para comprender el funcionamiento.
# This is a comment '''
This is a comment
on multiple lines
''' # VARIABLES
#
# A variable is a symbol that represents a quantity that may vary.
#
# $identifier = value; age = 25 # The value 25 is assigned to variable age # BASIC DATA TYPES
age = 25 # Integer
temperature = -3.82 # Real number
name = 'Nacho López' # String
has_car = True # Boolean (only two values: True or False) # ARITHMETIC OPERATIONS WITH NUMBERS
x = 5
y = 2 z = x + y # Addition. Result: 7.
z = x - y # Subtraction. Result: 3.
z = x * y # Multiplication. Result: 10.
z = x / y # Division. Result: 2.5.
z = x % y # Modulo (remainder of the integer division). Result: 1. z = z + 1 # Increase the value of z by 1. Result: 2.
z = z - 1 # Decrease the value of z by 1. Result: 1. z = 50 - x * 6 / -0.5 #
z = (50 - x) * 6 / -0.5 # The order of operations is as in mathematics
z = (50 - x * 6) / -0.5 # z = 2 * z + 3 # Remember: the symbol = assigns a value to the variable # BASIC OPERATIONS WITH STRINGS
a = 'GNU/'
b = 'Linux'
c = a + b # Concatenation Result: 'GNU/Linux'.
c = a * 3 # Repetition Result: 'GNU/GNU/GNU/'. # PRINT VARIABLES ON SCREEN print('Hello, world!') # Prints on screen: Hello, world!
print(x) # Prints the variable x # You can print on screen strings and variables
print('I have bought', x, 'oranges and', y, 'lemons.') # DATA TYPE CONVERSION height = '95.4'
print(type(height)) # Prints the current data type
height = float(height) # Convert a string to a real number
print(type(height)) altitude = -544.432
print(type(altitude))
altitude = str(altitude) # Convert a real number to string
print(type(altitude))
Aquí os dejo un código mío de ejemplo para empezar a aprender a usar variables de tipo básico en PHP.
Es recomendable copiar el código y ejecutarlo en un intérprete de PHP y, a continuación, realizar los cambios que consideremos oportunos para comprender el funcionamiento.
'; // Imprime en pantalla: ¡Hola, mundo!
echo $x . '
'; // Imprime la variable x // Puedes imprimir en pantalla texto y variables
echo 'He comprado ' . $x . ' naranjas y ' . $y . ' limones.
'; // CONVERSIONES DE VARIABLES $altura = '95.4'; // Variable de tipo String
echo gettype($altura) . '
'; // Imprime el tipo de variable actual
$altura = (float) $altura; // Conversión de String a número real
echo gettype($altura) . '
'; // Imprime el tipo de variable actual $altitud = -544.432; // Variable de tipo número real
echo gettype($altitud) . '
'; // Imprime el tipo de variable actual
$altitud = (string) $altitud; // Conversión de número real a String
echo gettype($altitud) . '
'; // Imprime el tipo de variable actual ?>
Aquí os dejo un pequeño código en Python 3 para empezar a trabajar las condicionales anidadadas:
año = int(input('Introduce un año: '))
if año % 4 == 0:
if año % 100 == 0:
if año % 400 == 0:
print('El año es bisiesto')
else:
print('El año no es bisiesto')
else:
print('El año es bisiesto.')
else:
print('El año no es bisiesto.')

Anaconda es una distribución Python que contiene una gran cantidad de paquetes, la mayoría enfocados al mundo científico y al procesado de datos.
Viene incluído además uno de mis IDE favoritos para Python: Spyder.
Instalar Anaconda es muy sencillo y viene con todos los paquetes que personalmente yo necesito y me evito de usar decenas de comandos apt-get o de entornos virtuales.
Y vosotros, ¿habéis probado Anaconda? ¿Qué os parece?
Enlace: Página oficial de Anaconda.
Enlace: Página oficial de descargas de Anaconda.
Enlace: Página oficial de paquetes incluídos en Anaconda.
Hace aproximadamente un año y medio que publiqué un tutorial sobre cómo Instalar OpenCV 3.0.0 en Ubuntu 14.04 LTS.
En este caso os traigo el mismo tutorial, en inglés pero muy fácil de seguir, pero verificado para instalar OpenCV 3.1.0 en Ubuntu 16.04 LTS. Éste es el enlace: Install OpenCV on Ubuntu or Debian.
El script de instalación incluído en el tutorial ha sido verificado para los siguientes sistemas operativos y versiones de OpenCV:
· Ubuntu 14.04 LTS.
· Ubuntu 16.04 LTS.
· Debian 8 “Jessie”.
Nota: en aras de la simplificidad, usaré el término Linux de escritorio a una distribución de escritorio GNU/Linux. Como es conocido, la controversia sigue presente siendo respetable cada una de las opiniones, hasta aquellas que defienden denominaciones como GNU/Apache/etcétera/Linux.
No hay un referente claro para determinar el porcentaje de usuarios que utilizan Linux de escritorio. Hay varios informes como el que ofrece StatCounter Global Stats. Otro informe se puede ver en la encuesta sobre hardware y software que Steam que hace periódicamente. En estas dos se puede observar claramente cómo Linux de escritorio está en porcentajes por debajo del 7 % o por debajo del 1 %. Incluso en la encuesta a los desarrolladores en Stack Overflow, Linux de escritorio está por debajo de Windows y OS X.