palettr, generador de paletas de colores
palettr Genera paletas de colores nuevas y frescas inspiradas en un tema o un lugar. «Palettr es una herramienta web para diseñadores que generan nuevas y frescas paletas de colores inspiradas en un tema o un lugar«.
Visto en:
https://www.shopify.es/blog/62615749-14-generadores-de-paletas-de-color-online-para-diseno-web
Esta canción la quiero tocar: The Snow It Melts The Soonest
Dejo la letra original de la canción tradicional The Snow It Melts The Soonest, creo que inglesa )o escocesa, no sé).
Lyrics collected by Thomas Doubleday in 1821 from a street singer in Newcastle, England
The Snow It Melts The Soonest
O, the snow it melts the soonest when the winds begin to sing;And the corn it ripens fastest when the frosts are setting in;And when a woman tells me that my face she’ll soon forget,Before we part, I wad a crown, she’s fain to follow’t yet.
The snow it melts the soonest when the wind begins to sing;And the swallow skims without a thought as long as it is spring;But when spring goes, and winter blows, my lass, an ye’ll be fain,For all your pride, to follow me, were’t cross the stormy main.
O, the snow it melts the soonest when the wind begins to sing;The bee that flew when summer shined, in winter cannot sting;-I’ve seen a woman’s anger melt between the night and morn,And it’s surely not a harder thing to tame a woman’s scorn.
O, never say me farewell here -no farewell I’ll receive,For you shall set me to the stile, and kiss and take your leave;But I’ll stay here till the woodcock comes, and the martlet takes his wing,Since the snow aye melts the soonest, lass, when the wind begins to sing.
Lyrics collected by Thomas Doubleday in 1821 from a street singer in Newcastle, England
La versión que me gusta es esta:
Redirigir páginas de Error 404 en PrestaShop a la Home
https://www.hnevado.es/blog/redireccionar-errores-404-a-la-home-en-prestashop/
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
class PageNotFoundControllerCore extends FrontController
{
public $php_self = 'pagenotfound';
public $page_name = 'pagenotfound';
public $ssl = true;/**
* Assign template vars related to page content
* @see FrontController::initContent()
*/
public function initContent()
/** AÑADO TEMA REDIRECCION ERRORES
*/
{
Tools::redirect();
header('HTTP/1.1 404 Not Found');
header('Status: 404 Not Found');
if (preg_match('/.(gif|jpe?g|png|ico)$/i', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
$this->context->cookie->disallowWriting();
if (!isset($_SERVER['REDIRECT_URL'])) {
$_SERVER['REDIRECT_URL'] = '';
if (preg_match('@^'.__PS_BASE_URI__.'([0-9]+)-([_a-zA-Z0-9-]+)(/[_a-zA-Z0-9-]+)?.jpg$@', $_SERVER['REQUEST_URI'], $matches)) {
$_SERVER['REDIRECT_URL'] = __PS_BASE_URI__.'p/'.Image::getImgFolderStatic($matches[0]).'/'.$matches[0].'-'.$matches[1].'.jpg';
}
}
if (preg_match('#/p[0-9/]*/([0-9]+)-([_a-zA-Z]*).(png|jpe?g|gif)$#', $_SERVER['REDIRECT_URL'], $matches)) {
// Backward compatibility since we suffixed the template image with _default
if (Tools::strtolower(substr($matches[2], -8)) != '_default') {
header('Location: '.$this->context->link->getImageLink('', $matches[1], $matches[2]), true, 302);
exit;
} else {
$image_type = ImageType::getByNameNType($matches[2], 'products');
if ($image_type && count($image_type)) {
$root = _PS_PROD_IMG_DIR_;
$folder = Image::getImgFolderStatic($matches[1]);
$file = $matches[1];
$ext = '.'.$matches[3];
if (file_exists($root.$folder.$file.$ext)) {
if (ImageManager::resize($root.$folder.$file.$ext, $root.$folder.$file.'-'.$matches[2].$ext, (int)$image_type['width'], (int)$image_type['height'])) {
header('HTTP/1.1 200 Found');
header('Status: 200 Found');
header('Content-Type: image/jpg');
readfile($root.$folder.$file.'-'.$matches[2].$ext);
exit;
}
}
}
}
} elseif (preg_match('#/c/([0-9]+)-([_a-zA-Z]*).(png|jpe?g|gif)$#', $_SERVER['REDIRECT_URL'], $matches)) {
$image_type = ImageType::getByNameNType($matches[2], 'categories');
if ($image_type && count($image_type)) {
$root = _PS_CAT_IMG_DIR_;
$file = $matches[1];
$ext = '.'.$matches[3];
if (file_exists($root.$file.$ext)) {
if (ImageManager::resize($root.$file.$ext, $root.$file.'-'.$matches[2].$ext, (int)$image_type['width'],
(int)$image_type['height'])) {
header('HTTP/1.1 200 Found');
header('Status: 200 Found');
header('Content-Type: image/jpg');
readfile($root.$file.'-'.$matches[2].$ext);
exit;
}
}
}
}
header('Content-Type: image/gif');
readfile(_PS_IMG_DIR_.'404.gif');
exit;
} elseif (in_array(Tools::strtolower(substr($_SERVER['REQUEST_URI'], -3)), array('.js', 'css'))) {
$this->context->cookie->disallowWriting();
exit;
}
parent::initContent();
$this->setTemplate(_PS_THEME_DIR_.'404.tpl');
}
protected function canonicalRedirection($canonical_url = '')
{
// 404 - no need to redirect to the canonical url
}
protected function sslRedirection()
{
// 404 - no need to redirect
}
}
Lanzada nueva versión de ReactOS, el sistema operativo libre compatible con Windows
Post recuperado de KnowHow…
«ReactOS 0.4.11 ya está disponible para su descarga y llega cuatro meses después de la versión 0.4.10 para traer muchas más novedades, y mejor soporte para tus aplicaciones de Windows favoritas. Respecto a eso, este lanzamiento añade mejor soporte para aplicaciones .NET 2.0 y agrega soporte para Blender 2.57b, Quicktime Player 7.7.9, Evernote 5.8.3, Bumptop y muchas otras aplicaciones«, según puedes leer en el artículo de Linuxadictos.
Peppermint OS de 32 bits no me permite arrancar el cliente de ownCloud
Valencia, 05/03/2019, G.B.
A pesar de haber podido instalar el cliente de ownCloud en un a distro Peppermint OS de 32 bits, no he podido arrancarlo porque no es compatible. Creo que es por la arquitectura de 32 bits, parece ser que han retirado su soporte. Al menos he podido instalarlo en Peppermint OS sin ningún problema desde la terminal tecleando:
Eso sí, siempre puedo acceder vía interfaz web. Veremos si pruebo con un Peppermint OS de 64 bits y si no tengo problemas de bloqueo y/o acceso con el cliente de ownCloud en Linux (en principio, creo que no los habrá). Reportaré. Hasta pronto!
Me compro un ebook CyberBook E-Touch (de segunda mano)
Valencia, 02/03/2019, G.B.
Desde que mi viejo Amazon Kindle sucumbió, he dejado de leer libros electrónicos o e-readers. Por una parte, ha sido provechoso, ya que he vuelto a la lectura ‘en papel‘ y creo que lo he aprovechado (y seguiré haciendolo). No obstante, reconozco que un libro electrónico es un ‘cacharrito’ bastante interesante y cómodo.
Es un modelo bastante curioso, ya que es táctil, tiene teclado, joystick y permite la reproducción de audio y de cómics, y puede leer bastantes formatos. Tiene una capacidad interna de 4 Gigas y admite tarjeta miccroSD (yo le he puesto una de 8 Gigas por unos 7€).
Easy Player CyberBook E-Touch
Best Buy Easy Player CyberBook E-Touch
BestBuy Cyberbook E-Touch 6″ Pantalla táctil 4GB Negro (Amazon)
Manual del CyberBook E-Touch
Editores de vídeo para Linux: Openshot
Hecho a mano con y ¡100% GRATIS y de código abierto! Gratis y de código abierto para siempre (GPL version 3.0)
Estoy probando editores de vídeo para Linux, en concreto Openshot, un editor libre de vídeo, de código abierto (licencia GPL) y multiplataforma (para Mac, Linux y Windows). Lo he descargado en 2 distros distintas: Ubuntu y Peppermint OS.
Con Ubuntu lo he descargado como una AppImage (no sabía lo que era hasta hoy) y con Peppermint directamente instalándolo desde la terminal o línea de comandos: sudo apt-get install openshot.
OpenShot Video Editor is an award-winning, open-source video editor, available on Linux, Mac, and Windows. OpenShot can create stunning videos, films, and animations with an easy-to-use interface and rich set of features.
He hecho una pequeña prueba de creación de un vídeo con fotos y su exportación y ha sido bastante sencillo. Aunque sé que Openshot (según he leído) tiene muchas posibilidades como editor de vídeos, solo con la conversión de fotos a vídeo, añadiendo alguna que otra transición y efecto, me ha convencido. Voy a indagar un poco más sobre este editor de vídeos gratuito y de código libre.
Hasta pronto!
Enlaces recomendados:
Manual del usuario de Openshot
Descargar AppImage (64 bits)
Cambio de PTV Telecom a MasMovil con modem-router ZTE F680
Valencia, 13/02/2019, G.B.
Opciones del comando ls (List directory contents)
También podemos simplemente escribir ls para ver una lista de archivos y subdirectorios contenidos en el directorio de trabajo actual o alguno que especifiquemos, como se muestra en la imagen adjunta mostrando los archivos del directorio /usr.
–all Descripción
-F –classify Esta opción añadirá un carácter de indicador al final de cada nombre de la lista. Por ejemplo, a «/» si el nombre es un directorio.
Opciones y argumentos de los comandos de Linux
Los comandos son seguidos a menudo por una o más opciones que modifican su comportamiento. Además, por una o más argumentos, los elementos sobre los que actúa el comando. Así que la mayoría de los comandos se parecen a algo así como lo siguiente:
comando -opciones argumentos
La mayoría de los comandos utilizan opciones que consisten en un solo carácter precedido de un guión, para ejemplo, «-l», pero muchos comandos, incluyendo los del Proyecto GNU, también soportan opciones largas, que consisten en una palabra precedida de dos guiones. Además, muchos comandos permiten múltiples opciones cortas para encadenarlas. En este ejemplo, se da el comando ls dos opciones, la opción «t» para clasificar la salida de formato largo por la hora de modificación del archivo y la opción «l» para producir salida de formato largo:
guillermo@guillermo-HP-Compaq-8000-Elite-SFF-PC:~$ ls -t –l
total 64
drwxr-xr-x 2 guillermo guillermo 4096 ene 9 16:46 Descargas
drwxr-xr-x 2 guillermo guillermo 4096 ene 6 20:08 Imágenes
drwxr-xr-x 13 guillermo guillermo 4096 ene 6 19:45 Vídeos
drwxr-xr-x 107 guillermo guillermo 4096 ene 5 15:49 ‘Biblioteca de calibre’
drwxr-xr-x 2 guillermo guillermo 4096 ene 5 15:48 Escritorio
drwxrwxr-x 20 guillermo guillermo 20480 ene 5 15:38 EBOOKS
drwxr-xr-x 3 guillermo guillermo 4096 ene 5 15:35 Documentos
drwxr-xr-x 5 guillermo guillermo 4096 ene 5 14:54 Música
drwxrwxr-x 2 guillermo guillermo 4096 dic 16 19:05 ISOS
lrwxrwxrwx 1 guillermo guillermo 41 dic 16 17:51 «PlayOnLinux’s virtual drives» -> /home/guillermo/.PlayOnLinux//wineprefix/
drwxr-xr-x 3 guillermo guillermo 4096 dic 16 01:46 snap
drwxr-xr-x 2 guillermo guillermo 4096 dic 16 01:46 Plantillas
drwxr-xr-x 2 guillermo guillermo 4096 dic 16 01:46 Público
guillermo@guillermo-HP-Compaq-8000-Elite-SFF-PC:~$
Algunos ejemplos más: