#StackBounty: #magento2 #category-products When change a swatch option how to get a selected simple product id by option id in category…

Bounty: 50

When change a swatch option how to get a selected simple product id from configurable in category product listing page in magento 2

when i select a swatch option, i was get a option id, from the option id how to get a simple product id from configurable product

Refer image : https://prnt.sc/ntsay1

code:

appcodeCmPreorderviewfrontendtemplatesproductlist.phtml

    
requirejs(['jquery','underscore'], function(jQuery,_){
    jQuery(window).load(function(){
        jQuery( '[class*="swatch-opt"]' ).on('click', '.swatch-option', function() {

            selpro();

        });
    });
    function selpro () {
        var selected_options = {};
        jQuery('div.swatch-attribute').each(function(k,v){
            var attribute_id    = jQuery(v).attr('attribute-id');
            var option_selected = jQuery(v).attr('option-selected');
            // console.log(attribute_id, option_selected);
            if(!attribute_id || !option_selected){ return;}
            selected_options[attribute_id] = option_selected;
        });
             console.log(selected_options);

    }
});

 


Get this bounty!!!

#StackBounty: #keras #lstm In Keras, how to get 3D input and 3D output for LSTM layers

Bounty: 100

In my original setting, I got

X1 = (1200,40,1)
y1 = (1200,10)

Then, I work perfectly with my codes:

model = Sequential()
model.add(LSTM(12, input_shape=(40, 1), return_sequences=True))
model.add(LSTM(12, return_sequences=True))
model.add(LSTM(6, return_sequences=False))
model.add((Dense(10)))

Now, I further got another time series data same sizes as X1 and y1. i.e.,

X2 = (1200,40,1)
y2 = (1200,40)

Now, I stack X1, X2 and y1, y2 as 3D arrays:

X_stack = (1200,40,2)
y_stack = (1200,40,2)

Then, I try to modify my keras code like:

model = Sequential()
model.add(LSTM(12, input_shape=(40, 2), return_sequences=True))
model.add(LSTM(12, return_sequences=True))
model.add(LSTM(6, return_sequences=False))
model.add((Dense((10,2))))

I want my code work directly with the 3D arrays X_stack and y_stack without reshaping them as 2D arrays. Would you give me a hand on how to modify the settings? Thank you.


Get this bounty!!!

#StackBounty: #magento2.3.1 #multi-website #core-file-storage Magento2.3.1 : No.of files increased

Bounty: 50

https://www.depoto.com/
When I tried to open my website, I am getting the error that There has been an error processing your request

Then I checked in system.log.

The error is Disk quota exceeded

enter image description here

The no.of files count make doubled to the original files count when i deploy the content.

Note: I have a single Magento installed website only.

Why that much of files existed in Magento?


Get this bounty!!!

#StackBounty: #systemd #kde #power-management #suspend Automatic suspension no longer works after 'systemctl mask sleep.target'…

Bounty: 50

My laptop is running KDE on LinuxMint 18.3. Automatic suspend was working so far. KDE version is 5.8.9, Framworks version 5.36.0. QT version 5.6.1, kernel version 4.10.0-38-generic.

In the Energy Saving module’s dialog box, Suspend session is turned on and set to, e.g. after 10 minutes.

I then did a ‘systemctl mask sleep.target’ as root, followed by ‘systemctl unmask sleep.target’ to restore it.

After this, automatic suspension no longer works. After 10 minutes, the laptop is still not suspended. The screen is blank and locked. After I unlock, the Authentication Required dialog box is showing up and is asking for password, instead of suspension being done automatically.

Manual suspend via pm-suspend still works.

How do I fix this?


Get this bounty!!!

#StackBounty: #boot #dual-boot #uefi #19.04 #secure-boot Can't boot Ubuntu 19.04 or Ubuntu19.04 LiveUSB after enrolling MOK

Bounty: 50

Before showing GRUB, it shows

Unable to trigger tcg2 final events table: Invalid Parameter
Something has gone seriously wrong: import_mok_state() failed
: Invalid Parameter

and machine power off.

It’s my first time to install Ubuntu 19.04 on this machine, DELL T5810 with UEFI. The Ubuntu installation was fine, enrolling the Machine Owner Key MOK caused the boot error. When I ran sudo apt install virtualbox. virtualbox installation prompted me to enroll MOK; I rebooted the machine, and enrolled MOK. Then it entered the above dead state.

Booting from Ubuntu’s LiveUSB installer shows the same error message. Luckily, I can still boot into Windows 10 on the same machine. I just want to revert enrolling MOK. Not installing Virtualbox in future is acceptable.

What I’ve tried:

  1. Searching the error message leads to mokutil, but I can’t boot into a linux now.
  2. I also tried to reset BIOS, but it doesn’t work at all (I have to repair windows boot).
  3. Open EFI partition in Windows, deleted EFI/ubuntu, EFI/BOOT/fbx64.efi, EFI/BOOT/mmx64.efi.
  4. I’ve deleted successful installed Ubuntu partition.
  5. Tried Ubuntu 18.04 Live USB.
  6. Upgrade BIOS to latest version from Dell website.
  7. Delete and re-create EFI partition completely.

The first 3 partitions are

  1. EFI
  2. Windows
  3. Ubuntu (has been removed)


Get this bounty!!!

#StackBounty: #systemd #kde #power-management #suspend Automatic suspension no longer works after 'systemctl mask sleep.target'…

Bounty: 50

My laptop is running KDE on LinuxMint 18.3. Automatic suspend was working so far. KDE version is 5.8.9, Framworks version 5.36.0. QT version 5.6.1, kernel version 4.10.0-38-generic.

In the Energy Saving module’s dialog box, Suspend session is turned on and set to, e.g. after 10 minutes.

I then did a ‘systemctl mask sleep.target’ as root, followed by ‘systemctl unmask sleep.target’ to restore it.

After this, automatic suspension no longer works. After 10 minutes, the laptop is still not suspended. The screen is blank and locked. After I unlock, the Authentication Required dialog box is showing up and is asking for password, instead of suspension being done automatically.

Manual suspend via pm-suspend still works.

How do I fix this?


Get this bounty!!!

#StackBounty: #boot #apt #grub2 #kernel depmod: FATAL: could not load /boot/System.map-4.8.0-59-generic: No such file or directory

Bounty: 50

NOTE: I doubt this question is a duplicate of this because I don’t use DKMS


Edit: I cannot install, upgrade, or remove any packages. I NEED TO FIX THIS

Hello, on my server (recently restored from a horrific kernel issue), apt autoremove --purge gives this result:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-image-extra-4.8.0-59-generic
0 upgraded, 0 newly installed, 1 to remove and 36 not upgraded.
2 not fully installed or removed.
After this operation, 161 MB disk space will be freed.
(Reading database ... 264820 files and directories currently installed.)
Removing linux-image-extra-4.8.0-59-generic (4.8.0-59.64) ...
depmod: FATAL: could not load /boot/System.map-4.8.0-59-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-59-generic /boot/vmlinuz-4.8.0-59-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-59-generic /boot/vmlinuz-4.8.0-59-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-59-generic
cp: failed to restore the default file creation context: Invalid argument
E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.8.0-59-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.8.0-59-generic (--remove):
 installed linux-image-extra-4.8.0-59-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.8.0-59-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

A line of interest here is this:

depmod: FATAL: could not load /boot/System.map-4.8.0-59-generic: No such file or directory

ls /boot:

0 LD-Server /etc/update-motd.d ls /boot
abi-4.15.0-42-generic     grub/                         System.map-4.15.0-42-generic  vmlinuz-4.15.0-43-generic
config-4.15.0-42-generic  initrd.img-4.15.0-42-generic  System.map-4.15.0-43-generic
config-4.15.0-43-generic  retpoline-4.15.0-42-generic   vmlinuz-4.15.0-42-generic

I see a System.map-4.15.0-42-generic and System.map-4.15.0-43-generic but no System.map-4.8.0-59-generic

My server seems to boot fine (it is running now after all), but I don’t exactly feel like testing it right now… Is there any way to fix this issue?


Get this bounty!!!

#StackBounty: #systemd #kde #power-management #suspend Automatic suspension no longer works after 'systemctl mask sleep.target'…

Bounty: 50

My laptop is running KDE on LinuxMint 18.3. Automatic suspend was working so far. KDE version is 5.8.9, Framworks version 5.36.0. QT version 5.6.1, kernel version 4.10.0-38-generic.

In the Energy Saving module’s dialog box, Suspend session is turned on and set to, e.g. after 10 minutes.

I then did a ‘systemctl mask sleep.target’ as root, followed by ‘systemctl unmask sleep.target’ to restore it.

After this, automatic suspension no longer works. After 10 minutes, the laptop is still not suspended. The screen is blank and locked. After I unlock, the Authentication Required dialog box is showing up and is asking for password, instead of suspension being done automatically.

Manual suspend via pm-suspend still works.

How do I fix this?


Get this bounty!!!

#StackBounty: #windows-10 #hard-drive #ssd #performance How do I measure the time taken for Samsung's Intelligent TurboWrite buffer…

Bounty: 50

I have a 1 TB Samsung 860 QVO SSD which is Samsung’s QLC NAND SSD offering.

It has an SLC cache used as a buffer during writes and I observed speeds of upto 520 MB/s for up to 10 gigabytes of sequential data transfer before the write speed tanked to 75-80 MB/s.

I tried writing another file to the drive after idling for more than an hour but I’m still seeing 80 MB/s write speeds. I also rebooted my notebook although I’m not sure that helped with anything as write speeds are still 80 MB/s.

I should mention that I’m running Windows 10 and this drive is used for nothing but storing data. It’s not the boot drive and it doesn’t store the pagefile or hiberfil.

Is there a way for me to see how much of the buffer is utilized at any given point so I can only start transferring files when it’s empty?


Get this bounty!!!

#StackBounty: #luatex #linux LuaLatex Rendering from input buffer instead of filename

Bounty: 50

I am trying to create pdf by passing buffer instead of filename but have certain issues.PDF size is only limited to two pages and can include only two pictures.Following is the full scenario.

md

I have managed to complete step 1 and 2 and to render I have to save data in temporary tex file before giving to lualatex file.

Issue

  1. On passing tex Buffer (which is very large) I get too long argument in lualatex system call.It works with less data.
  2. Is step 4 possible ?
    Are there any alternatives.

Basically I am trying to minimize unencrypted files created in this process due to security reasons.


Get this bounty!!!