Categories
Mastering Development

Java program to sort a versioning string in an ascending order

I have a list containing version strings, such as things: versions_list = ["1.1.2", "1.0.0", "1.3.3", "1.0.12", "1.0.2"] I would like to sort it, so the result would be something like this: versions_list = ["1.0.0", "1.0.2", "1.0.12", "1.1.2", "1.3.3"] How to do this in Java.

Categories
CMS Drupal Mastering Development

How do I install without having these errors? [closed]

So far, Drupal Commerce is the best module for e-commerce on Drupal. But now Drupal 9.0.0 was released, and when I want to install Drupal Commerce on Drupal 9, both way is out of luck. Both way I mean, installing Drupal Commerce via Drupal Console or Ludwigh Module. Here is the official documentation on how […]

Categories
CMS Drupal Mastering Development

How do I install Drupal Commerce on Drupal 9 without having these errors? [closed]

So far, Drupal Commerce is the best module for e-commerce on Drupal. But now Drupal 9.0.0 was released, and when I want to install Drupal Commerce on Drupal 9, both way is out of luck. Both way I mean, installing Drupal Commerce via Drupal Console or Ludwigh Module. Here is the official documentation on how […]

Categories
CMS Drupal Mastering Development

Drupal Commerce on Drupal 9.0.0 Failed to Install Both Via Drupal Console or Ludwig

So far, Drupal Commerce is the best module for e-commerce on Drupal. But now Drupal 9.0.0 was released, and when I want to install Drupal Commerce on Drupal 9, both way is out of luck. Both way I mean, installing Drupal Commerce via Drupal Console or Ludwigh Module. Here is the official documentation on how […]

Categories
CMS Development Magento

Upgrading data.. SQLSTATE[HY093]: Invalid parameter number: parameter was not defined, query was: INSERT INTO

when I execute an insert sql command inside ‘UpgradeData.php’ it gives me this error, can anyone tell me where is the problem here ? if(version_compare($context->getVersion(), ‘1.0.2’, ‘<‘)) { $query = “INSERT INTO authorization_rule(role_id,resource_id,permission) VALUES (:role_id,:ressource_id,:permission)”; $setup->getConnection()->query( $query, [ ‘:role_id’ => 5, ‘:resource_id’ => ‘Magento_Sales::unhold’, //’:priviliges’ => null, ‘:permission’ => ‘deny’ ] ); $setup->getConnection()->query( $query, [ […]

Categories
Development

how to perform a line by line merge for multiple files without using pandas merge which reads all data frames to memory

I wish to merge multiple files with a single (f1.txt) file based on 2 column matches after comparison with that file. I can do it in pandas but it reads everything to memory which can get big really fast. I am thinking a line by line reading will not load everything into memory. Pandas is […]