I’m currently working on a system that stores files in EXT4 partitions in large disk (10 TiB and 16 TiB ones). All disks are connected via SATA to an HBA (Dell PERC H310). The file structure is like this: /mnt/diskN/nXXX/store/some_id/twoletters/random_name and the files varies in size, between a few KiB […]
Monthly Archives: July 2022
Is there any way to paste text from web automatically simply as a single line text in Windows 10 File explorer? I’m surprised Microsoft Windows developers have never made it so that this error is avoided automatically and i have to fix such simple thing manually by copying into browser […]
I updated my Lenovo laptop v330 15IKB BIOS firmware from the official page of Lenovo, using its installer utility (Windows 10). The software identifies the model and shows the firmware/drivers available for it, lets you choose what to install and then installs it. After the installation the computer rebooted, but […]
I have a WD Elements 5TB USB hard drive that fdisk -l now shows as a single partition of Microsoft basic data: Device Start End Sectors Size Type /dev/sda1 2048 9767473151 9767471104 4.6T Microsoft basic data The last time I used it it contained 2 partitions in NTFS format as […]
I am wanting to write a bash script to manage backing up important directories on a newly established Ubuntu Server. I do not need to backup the whole system, and really only care about backing up the software running on the server as well as log files. I was thinking […]
module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="Greenplank_UploaderFix"> </module> </config> registration.php <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, 'Greenplank_UploaderFix', __DIR__ ); di.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="MagentoFrameworkAppFilesystemDirectoryResolver" type="GreenplankUploaderFixAppFilesystemDirectoryResolver"/> </config> DirectoryResolver.php <?php namespace GreenplankUploaderFixAppFilesystem; use MagentoFrameworkAppFilesystemDirectoryList; /** * Magento directories resolver. */ class DirectoryResolver { /** * @var DirectoryList */ private $directoryList; […]
I’ve created a customer EAV attribute and trying to show this attribute in the product details page but it always return chaced data till I run bin/magento cache:flush full_page. I’ve tried to use sections.xml in the frontend area but it’s not working. section.xml file content: <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" […]
I am trying to import products programmatically into a Magento 2.4.4 installation but I have problem setting the Salable Quantity. I cannot find a viable solution to this issue, please help if you can. Here is the code I am using to set product Quantity (simplified): use MagentoCatalogApiProductRepositoryInterface; use MagentoInventoryApiApiDataSourceItemInterfaceFactory; […]
I have an error that occurs randomly when I go to create a configurable product. The process is as follows: First I create all the simple products and in an array, I store all the ids of the simple products. Then through the following code, I go to create the […]