Using Map on a subarray in an array of Objects

Adebola's blog

I spent the last couple of hours trying to figure out how to get to the data in the Parts array within the Courses array of objects inside my react app and googled extensively without finding anything that could help.

I wanted to return the names of all the books within the parts array inside the courses array.

react1

Finally realized what I was doing wrong and figured that I needed to use two instances of the map function.

I will be using the following books array of objects to explain how I solved this problem.  We want to return only the categories of the books on the shelves.

react1

The first step is to call the map method on the outermost books array which contains our objects.

react1

The map method takes a callback function(a function within a function) and accepts a parameter to use in iterating through the array. We pass…

Ver la entrada original 83 palabras más

Coonman ver clave inalámbrica

# cd /var/lib/connman/wifi_(info_en_hexadecimal)_managed_psk

# nano settings

 

[wifi_(info_en_hexadecimal)_managed_psk]
Name=su red
SSID=su red (en hexadecimal)
Frequency=2457
Favorite=true
AutoConnect=true
Modified=2016-09-23T13:32:00.519285Z
Passphrase=la clave
IPv4.method=dhcp
IPv4.DHCP.LastAddress=192.168.0.102
IPv6.method=auto
IPv6.privacy=disabled

No existe clave pública…. 9D6D8F6BC857C906

Alvarus Blog

Cuando se esta instalando Linux, en mi caso Debian, es posible que luego de instalarlo y hacer un:

  • apt-get update
  • El sistema nos muestre un mensaje parecido a: » w: No existe ninguna clave pública disponible para los siguientes identificadores de clave: 9D6D8F6BC857C906″ o puede ser otro valor » 7638D0442B90D010″

Para cualquier caso o valor es recomendable realizar lo siguiente:

  • Revisar nuestro archivo /etc/apt/sources.list y verificar nuestros repositorios.
  • ejecutar un apt-get install debian-keyring debian-archive-keyring.

Eso nos soluciona este inconveniente y podemos actualizar y hacer un upgrade sin problemas.

Ver la entrada original

Emulador hp 48gx Linux Debian

Descargar la rom desde :

http://www.hpcalc.org/details.php?id=4524

Crear el directorio .hp48 bajo el directorio de usuario

/home/usuario/.hp48

Descomprimir gxrom-k.zip y copiar el archivo gxrom-k en el directorio /home/usuario/.hp48

Descargar e instalar el paquete .deb
(la versión más reciente para Debian 64 bits es el archivo x48_0.6.3_amd64.deb)

desde :

http://sourceforge.net/projects/x48.berlios/files/

Inicializar la rom desde la terminal

x48 -initialize -rom /home/usuario/.hp48/gxrom-k

Para ejecutar el emulador utilice el comando x48 desde la terminal

x48

Como alternativa para ejecutar el emulador puede crear un lanzador de aplicación desde el menú. Cree el archivo x48.desktop bajo el directorio

/home/usuario/.local/share/applications

con el siguiente código :

[Desktop Entry]
Name=x48
Comment=Calculadora HP 48GX
Exec=x48 -connFont -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-16 -smallFont -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-16 -mediumFont -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-16 -largeFont -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-16
Icon=accessories-calculator
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;Calculator;


hp48gxlinux

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Fuentes documentales :

https://www.ebower.com/docs/ubuntu-x48/#installation

http://scruss.com/blog/2014/01/09/the-hp48-the-best-calculator-ever/

http://www.freshports.org/emulators/x48/