Dairy of Mexican tireless software programmer

Magento2 Woocommerce Python, Unix, NodeJS

Dairy of Mexican tireless software programmer

marzo 13, 2019 Tales of Ultratumba 0

just because you can’t see, or touch or not perceive it does’t means it not  exists.. but exist inside my brain and lots of brains since last century when the “intelligent man created first computer code line..”

Sergio Romo brain reflexions summer 2018

someone just had said that before ?  yes sure it is possible, who care, for me came once i m in this time deeply analyzing feels been a Programmer; certainly never i m lookging to following steps of new 21 century Columbus and certainly i will not discover any else around PHP hundred lines, i jfeel i can enhance it !

I just feel that i am a modest mortal playing this adventure from Mexico New milk-way lighting E commerce National Software stuffs; after those years i still handing this special sensation spending several hours Testing and learning PHP ZendFramerworks, Webservice Technologies, API-REST connections, SCO Unix Programming — ; To me those times all then are specials moments just under the fascination of the Unix Console Code i had lots of time the sensation walking shoulder by shoulder with the suprem, .. almost some like that, but then and now as experimented programmer connectivity and develop of E commerce and Business applications , i just trying to squeezing   my brain  every night (or day ?) “time is relative according with the Poet or Einsten, i just haved feeding my

hungry

TO KNOW more and more about all them, to the end  to

only feel the sweet taste of triumph. It is possible TEST (as you test good coffe, god cigarret?), for me its work!

looking to discover and create more and more Extensions to connect  ERPs Software( or kind of Regional Administration Programs like Account , Inventory, Sales, HR,etc ..) , because, to me the real profit when the “man quit the pens and calculator  to pass to the keyboard

when all Business switch to the Technology life.

After   190 Connect Software Programs under my “creation (branded under Mojomexico  ) ”  it is not enough for me, those  plugins(,extensions, hooks, business-app what ever you named it ) represent all  10 years of my dairy work (or pleasantry?) because on any for me was a new challenge, something new to discover, to enjoy… my new creation— it re-live .. re-live !

After that sensations , what else … just the good feel sensation.. that is it.

have you some to say, share here.

 

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

This will close in 45 seconds

PROGRAMACION POR OBJETOS - TESTER NIVEL INTERMEDIO:

CONSUMO DE RECURSOS API DESDE UN ERP:

Instrucciones:

Revisa y corrige y completa del siguiente Objeto las lineas y sentencias con error para poder  consumir de forma correcta los recursos API del Proveedor X MAYORISTA en el cual nos proporciona como medio de acceso-peticion

LA URL-ERP asi:  "../API/CATALOGO/ID.."

En cada PETICION HTTP-POST deberás incluir en EL TOKEN-AUTORIZACION en formato JSON previamente EMPACADO con seguridad de 64bits, quedando tu funcion asi dentro de una CLASE (OBJETO) LLAMADO:

class APIMayoristaX {

return function _get_Token_API () {

(incluir function del alogirtmo Hass)($data_arreglo[

"user" => USERKEY,

"paswd" => PASSKEY

};

public function _get_API_Productos() {

$filto = [

"sku" => valor,

Nombre => valor,

Precio => valor

existencias => valor

];

$token = _get_Token_API ();

return $this->get_CatalogoAPI_Inventario($token, $filtro);

}

}

 

This will close in 0 seconds

PROGRAMACION POR OBJETOS - TESTER NIVEL FRAMEWORK:

CONSUMO DE RECURSOS EN CODEIGNITER:

Instrucciones:

1.- Asumimos que deseas APLICAR LOS REGURSOS (desdeController) en donde vas a consumir :

: LIBRERIAS (LIBRERY y UNA BASE DE DATOS (DATABASE) tanto de Config como de Model

HAZ AQUI UN OBJETO llamado CLASS PRODUCTOS para demostrar la llamada y uso de recursos.

 

This will close in 0 seconds

PROGRAMACION POR OBJETOS - TESTER NODEJS OOP:

Asumimos que cuentas con un JS TOKEN que va a hacer conexion con una BASE DE DATOS (MSSQL):

cómo agregarias un OBJETO-JS en forma de CLASE para llamar a la base de datos y que puedas declarar METODOS de : consulta, actualizacion , borrado en la BASE DE DATOS ?

te doy un TIP:

class Querysql {
constructor() {
.....
});
}
async get_USUARIOS (req, res) {
.....
} etc (sigiendo este ejemplo, completa para cerrar la CLASE y hacer agrega la linea de llamado a cada peticion.

 

This will close in 0 seconds

Instrucciones:
Suponemos que tienes un OBJETO CLASE "A", en el cual al ejecutarse en automático integra los valores INIT de su respectiva funcion asi:
class A (padre) {
private $this;
public function __construct() {
$this->init();
}public function init() {
$this->clave = json_decode($this->catalogo->sku["SKU-A", TRUE];
$this->nombre = json_decode($this->catalogo->nombre["NOMBRE", TRUE];
$this->precio = json_decode($this->catalogo->precio["PRECIO", TRUE];
$this->stock = json_decode($this->catalogo->stock["STOCK", TRUE];
}
} //end parent class AEn el espacio disponible, crea EL OBJETO HIJO (puede ser llamado CLASS B) del MISMO PADRE de tal forma que puedas LLAMAR Y REUTILIZAR los valores existentes y actuales en una FUTURA FUNCION llamala "Funcion verValores(variables)" o algo similar, de la base de datos que son:
SKU, NOMBRE, PRECIO Y STOCK

para Finalizar envia tu respuesta con el formulario aqui presente

Al enviar tu respuesta, evaluaremos y te daremos tu calificacion por tu mail.

 

This will close in 0 seconds

PROGRAMACION POR OBJETOS - TESTER MAGENTO2 Nivel Basico PLANTILLADOR:

Suponemos el siguiente escenario:

1.- Tienes un CUSTOM-MODULO (UN TEMA MAGENTO2) con el siguiente LAYOUT(view/frontend/layout/) y el siguiente XML

CMS_INDEX_INDEX.XML

Y el siguiente codigo en este layout:

<referenceContainer name="page.top">
<block class="Custom_ModuleBlockEfect" template="efect.phtml" />
</referenceContainer>

EXPLICA SOBRE LAS ACCIONES DE "EFECT.PHTML" : DONDE SERÁN MOSTRADAS (EVENTO-POSICION) , CADA CUANDO SE EJECUTARÁ Y DONDE PUEDES AGREGAR-MODIFICAR DICHO EFECTO ?

 

This will close in 0 seconds

PROGRAMACION POR OBJETOS - TESTER MAGENTO2 Nivel MEDIO PLANTILLADOR

haz clic en el liguiente LINK :  http://magento2.saetiendaweb.com/

1.- ahi podras notar varios EFECTOS CUSTOMIZADOS de LAYOUT(view/frontend/layout/) agregados de forma PLUGIN-CUSTOM-MODULO:

TODOS LOS EFECTOS SON ACCIONES INSERTADAS CON EFECTOS PROPIO COMO INDEX_XML, CATALOG_XML, CHECKOUT_XML

en t respuesta: qué CONFIG LAYOUT usarias en el archivo CATALOG_XML...  para crear los efectos de BOTON-PAGO en la zona CATALOGO de la tienda, seria algo asi:

<referenceContainer name="mmmmm">
<block class="Custom_ModuleBlock...." template="catalog.phtml" />
</referenceContainer>

describe cada accion por linea

This will close in 0 seconds

PROGRAMACION POR OBJETOS - TESTER PROGRAMADOR SHELL:

En una LINEA usando SED, debes aplicar las siguientes busquedas :

1.-  DETECTAR SOLO ARCHIVOS desde un punto (no necesario raiz)

2.- FILTRAR QUE SEAN SOLO DE UNA CATEGORIA (por eje. solo archivos xml)

3.- FILTRAR QUE el resultado CONTENGA dentro de cada archivo solo los de una  VERSION ESPECIAL : por eje: <xml VER:11.0.3>

4.- EL RESULTADO de los archivos que coindicen en el filtro GUARDAR como reporte  EN FORMATO "PIPE" o separaciones por "coma"

5.- ACTUALIZAR CADA ARCHIVO (COINCIDENCIA) cambiando DE "VER:11.0.3" A "VER:12.0.0" m todo en LA MISMA LINEA SHELL o en un proceso bucle.

 

This will close in 0 seconds

PROGRAMACION POR OBJETOS - TESTER PROGRAMADOR SHELL (avanzado)

En una LINEA usando SED+AWK, debes aplicar las siguientes acciones:

1.-  DETECTAR SOLO ARCHIVOS desde un punto (no necesario raiz)

2.- FILTRAR QUE SEAN SOLO DE UNA CATEGORIA (por eje. solo archivos CSV)

3.- FILTRAR que COINCIDA UNA MARCA AL INICIO DE CADA LINEA (por eje: CLASE N)

4.- EL RESULTADO vas a CREAR TANTOS ARCHIVOS como CLASES AGRUPADAS CONTENTA, EN FORMATO "PIPE" o separaciones por "coma"

5.- Agregar UN HEADER COMO "COMENARIO DE AUTOR..VERSION..ETC)" m todo en LA MISMA LINEA SHELL o en un proceso bucle.

 

This will close in 0 seconds

Chat aqui
Por aqui te respondemos