Categories
CMS Magento Mastering Development

Checkout custom shipping address field – set as required

I have created a custom module that adds a text field in shipping address. It’s workin ok but I’d like to make it required. How can I do that? I tried adding ‘required-entry’ => true at validation parameter, in file Plugin/Checkout/LayoutProcessor.php but it didn’t work. Here are the module files: Mymodules/FieldCheckout/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘Mymodules_FieldCheckout’, […]

Categories
Development

Maven/Spring/MVC Web app – error cannot TalendJob (third party Talend

I’m developing a Spring/MVC/Maven Web app in Eclipse. The use case is for the app to call Talend jobs on an adhoc basis with parameters. The user enters time frame information (years, months) on a form page. Everything worked (form, validation, model, configuration, error checking, etc) until I added the required Talend jars. Some background […]

Categories
Development

How to have a Gitlab CI Pipeline run some jobs always and other jobs only on merge-requests?

TL/DR: My goal is to have a Gitlab (CE-12.4.2) pipeline that executes some jobs only on merge-requests and other jobs always (on merge-requests and on all normal pushes). How must the .gitlab-ci.yml look to do this? My use-case: I have a big pipeline running a lot of jobs (tests, validation, dep’s, build, doc’s, …). Now […]

Categories
CMS Development Magento

Magento 2 customer custom attributes such as VAT

I am tring to add a customer custom attributes such as VAT. So I will not use the address structure but account structure. And i want to display the field during the payment and not during the first step (shipping info). But the result is This is the code \Setup\InstallData.php namespace Vendor\ItalianFiscalAttributes\Setup; use Magento\Framework\Setup\InstallDataInterface; use […]

Categories
CMS Development Magento

Magento 2 customer custom attributes such as VAT

I am tring to add a customer custom attributes such as VAT. So I will not use the address structure but account structure. And i want to display the field during the payment and not during the first step (shipping info). But the result is This is the code \Setup\InstallData.php namespace Vendor\ItalianFiscalAttributes\Setup; use Magento\Framework\Setup\InstallDataInterface; use […]

Categories
CMS Development Magento

Magento 2 customer custom attributes such as VAT

I am tring to add a customer custom attributes such as VAT. So I will not use the address structure but account structure. And i want to display the field during the payment and not during the first step (shipping info). But the result is This is the code \Setup\InstallData.php namespace Vendor\ItalianFiscalAttributes\Setup; use Magento\Framework\Setup\InstallDataInterface; use […]

Categories
Development

How to make common response data in NODEJS? [closed]

I want to make a common response Class for Node APIs. Currently, I’m working on laravel so I can create easily class for return common and dynamic response for all Laravel APIs. So, I’m new in node to make an API so I want to make dynamic code like The dynamic response, Validation, Or MongoQueries […]

Categories
Development

Load a avro file in BigQuery – Unexpected type for default value. Expected null, but found string: “null”

I need to transfer the result of this query to BigQuery, as you can see, I decode the data I get in Cloud Storage, I created an avro file to load it into a BigQuery table but I receive this error: Unexpected type for default value. Expected null, but found string: “null” import csv import […]

Categories
Development

Keras model only generates a plane when trying to approximate a math function

I’m trying to approximate a function f(x,y) using a single hidden layer perceptron (required that is single layer) by generating a meshgrid of 10,000 points between [-1,1] for both x and y, calculating f(x,y) and adding some gaussian distributed random noise to each f(x,y) to generate my training, validation, and testing sets. When I train […]

Categories
Development Linux

What is –data-dir=${PWD} in my tutorial instructions?

I am following instructions in a tutorial. Download the CIFAR-10 dataset and generate TFRecord files using the provided script. The script and associated command below will download the CIFAR-10 dataset and then generate a TFRecord for the training, validation, and evaluation datasets. The command that I am supposed to run is: python generate_cifar10_tfrecords.py –data-dir=${PWD}/cifar-10-data For […]