Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

yotta / pictogram

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 60
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Develfaq

Develfaq

Last edited by Arturo Montejo Ráez May 05, 2017
Page history

Errores y notas para desarrolladores

Cómo depurar AngularJS y estudiar su rendimiento

  • Una extensión muy buena: Botarang
  • Las herramientas de "Performance" del inspector de Chrome también son muy interesantes para detectar cuellos de botella

Cambiando de scm.ujaen.es a gitlab.ujaen.es

Para actualizar los punteros de vuestros repos locales, haced lo siguiente dentro del directorio pictogram:

git remote remove origin
git remote add origin http://gitlab.ujaen.es/yotta/pictogram.git
git fetch --all

Actualizando el JSON de los registros en stu_picto

Ya que no usamos "legend + legend_size" sino un único atributo "legend" es necesario actualizar la BDD de la siguiente forma:

update stu_picto set attributes=json_insert(attributes, '$.legend', 'small');
update stu_picto set attributes=json_set(attributes, '$.legend', 'small');
update stu_picto set attributes=json_set(attributes, '$.legend', json_extract(attributes, '$.legend_size')) where json_extract(attributes, '$.legend_size') = 'small';
update stu_picto set attributes=json_set(attributes, '$.legend', json_extract(attributes, '$.legend_size')) where json_extract(attributes, '$.legend_size') = 'large';
update stu_picto set attributes=json_remove(attributes, '$.legend_size');

Cómo usar la Edison 3 de BQ para desarrollo (Linux)

1) Conectamos la tablet y ejecutamos desde la shell:

$ lsusb -v | less

Bus 002 Device 009: ID 2a47:201d  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
[...]

2) Creamos el fichero /etc/udev/rules.d/52-android-rules

UBSYSTEM=="usb", ATTR{idVendor}=="2a47", ATTR{idProduct}=="201d", MODE="0666", GROUP="amontejo", OWNER="amontejo"

idVendor e idProduct se corresponden con los valores devueltos en la primera línea de lsusb -v

Cambiamos los permisos del fichero

$ sudo chmod a+r /etc/udev/rules.d/51-android.rules

3) Borramos todo el contenido del directorio de android local:

`$ rm -rf ~/.android/*

4) Cambiamos permisos del adb (está en el SDK de Android, en el directorio platform-tools

$ sudo chown root:amontejo adb $ sudo chmod 4550 adb

5) Activamos la depuración en la tablet y conectamos reiniciando después adb adb kill-server adb start-server

6) Comprobamos que el dispositivo está. Debería ya preguntarnos la tablet por la autorización. adb devices

Error al importar pictodb-data.sql por problemas con claves foráneas

To import pictodb-data.sql into MySQL without foreign key constraints, ensure that the imported file starts with SET foreign_key_checks=0; and then you turn on it again with SET foreign_key_checks=1;

Git devuelve el error: "fatal: The remote end hung up unexpectedly"

Hay que aumentar el tamaño del buffer del cliente Git.

git config --global http.postBuffer 524288000

Error en Sails "bcrypt_lib.node: invalid ELF header"

La compilación de bcrypt en Linux no funciona sobre OSX y viceversa. Para solucionarlo hay que lanzar desde sails/src la orden:

  npm install bcrypt

Error en Sails "npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!"

Suele aparecer instalando bcrypt por problemas con las dependencias de los paquetes instalados y los nuevos a instalar. Para solucionarlo, actualizar los paquetes implicados desde sails/src con la orden:

  npm update grunt
  npm update bcrypt

Los cambios en las vistas no se reflejan en el navegador

Si esto ocurre, ejecutar grunt a mano antes de sails lift.

  Clone repository
  • 20170328_isabellemonfort
  • 20170328_luisballesteros
  • 20170328_luisperez
  • Apiaction
  • Apiadminvalid
  • Apiattribute
  • Apidevicevalid
  • Apienrolment
  • Apiinstructionresource
  • Apiinstructionvalid
  • Apilearningunitresource
  • Apimetamethodvalid
  • Apimethod
  • Apimethodresource
  • Apimethodvalid
More Pages
×

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.