Error trying using regionset despite enough vendor resets available

I’ve got a new PC where the DVD region is set to ‘4’ and regionset gives me an error when trying to set it to ‘2’ even though it says I have 4 vendor resets available.

adam@gondolin:~$   sudo regionset /dev/sr0 regionset version 0.1 -- reads/sets region code on DVD drives Current Region Code settings: RPC Phase: II type: SET vendor resets available: 4 user controlled changes resets available: 4 drive plays discs from region(s): 4, mask=0xF7  Would you like to change the region setting of your drive? [y/n]:y Enter the new region number for your drive [1..8]:2 New mask: 0xFFFFFFFD, correct? [y/n]:y ERROR: Region code could not be set! adam@gondolin:~$    

This is the info from the hardware with smartmontools:

adam@gondolin:~$   sudo smartctl -i /dev/sr0 smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-54-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org  === START OF INFORMATION SECTION === Vendor:               HL-DT-ST Product:              DVD+-RW GA31N Revision:             A102 User Capacity:        730,214,400 bytes [730 MB] Logical block size:   2048 bytes >> Terminate command early due to bad response to IEC mode page A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. adam@gondolin:~$    

I don’t like that error!

I figure it might just be something to do with the fact that it’s a DVD drive and not a normal hard drive.

There’s currently a CD in the drive – it won’t accept a DVD and therefore regionset won’t run with a DVD, but according to regionset docs, that should be irrelevant.

This is Ubuntu 18.04 Bionic, from the server install where I then installed Xwfm4 on top, if that makes any difference.

Is the DVD drive some sort of Chinese no-name that will only work in Windows or something? Do I need a new one or is there some linux wizardry I can do?

How to deploy to production server customizations made in vendor folder?

So, We have 3 environments: development, staging and production.

.gitignore file includes “vendor” folder and it has been working fine for us fine. Once We pull changes in Staging We would just run:

composer install php bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento setup:static-content:deploy && php bin/magento c:enable && php bin/magento c:c 

The issue is: We had to customize a third party extension installed by composer (under “vendor” folder) and this path is ignored by Git. What should I do to keep track of this changes and deploy them to staging server?

I could “git add -f ” but would like your opinion on best practices.

Moving a vendor module to new cron group in magento 2

We are utilizing the Firebear module to import product and pricing data which run in the default cron group. The import takes quite a bit of time/resources so it was recommended to move the Firebear cron to its own group. The Firebear crontab.xml is currently setup like so:

vagrant/tmp/vendor/firebear/importexport/etc/crontab.xml 
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">     <group id="default">     <job name="importexport_jobs_run_id" instance="Firebear\ImportExport\Cron\RunImportJobs" method="execute">     <schedule>*/1 * * * *</schedule>     </job>     <job name="importexport_export_jobs_run_id" instance="Firebear\ImportExport\Cron\RunExportJobs" method="execute">         <schedule>*/1 * * * *</schedule>     </job>     </group> </config> 

At a high level I will need to: 1 – create new cron group 2 – override Firebear crontab to run in new group

Any help on the process to accomplish this will be much appreciated.

What happens if vendor partition is corrupted?

I mistakenly flashed recovery image in vendor partition while installing a custom rom. I am using Lenovo K6 Power with Lineage OS Oreo Karate by Karthik with TWRP. I was flashing Resurrection Remix Oreo while this happened.

I haven’t rebooted my device till now and it is charging. So what will happen now? When I try to flash RR I get error: /vendor cannot be mounted, when I try to restore I get the same error message.

Currently I am downloading stock rom and planning to flash it via Qfil in hopes of fixing it. Any ideas what to do?

When I use “echo” in vendor methods – products not showing, but work fine without it

I got the next code:

public function getProductCollection() {     if (isset($  this->_productCollections[$  this->getCurrentCategory()->getId()])) {         $  collection = $  this->_productCollections[$  this->getCurrentCategory()->getId()];     } else {         $  collection = $  this->collectionProvider->getCollection($  this->getCurrentCategory());         $  this->prepareProductCollection($  collection);         $  this->_productCollections[$  this->getCurrentCategory()->getId()] = $  collection;     }     echo "Collection count".$  collection->count();     return $  collection; } 

When I tried to echo collection count – it always equals 0, but when I delete this string – everything is okay count equals 16. How?

Different Bootstrap themes on vendor vs client facing admin dashboards

I’m creating a multi-tenant web application. We (the vendor) are developing an application where each organization that subscribes will have its own administration dashboard.

The “client facing” admin dashboard is themed using Bootstrap 4 and a commercial Bootstrap template which looks nice. However, our “vendor” dashboard will be much simpler and is mostly just a UI to add/remove organizations and change some settings. The rest of the administration would be done by logging into one of the organization’s admin dashboards with escalated privileges.

My concern is continuity. Vendor administrators (i.e. people in my company) might have a poor user experience while managing clients if the page layout and theme keeps changing when switching to our admin panel to the client admin panel and vice versa.

On the other hand, in my opinion having two different styles makes it clear and obvious which system your currently working in. It would also save some costs not having to use a commercial theme which only our company would be viewing.

Any thoughts on this? Is there recommendations against having two different styles/layouts?